@@ -941,14 +941,17 @@ static RPCHelpMan submitblock()
941
941
{
942
942
// We allow 2 arguments for compliance with BIP22. Argument 2 is ignored.
943
943
return RPCHelpMan{" submitblock" ,
944
- " \n Attempts to submit new block to network.\n "
945
- " See https://en.bitcoin.it/wiki/BIP_0022 for full specification.\n " ,
946
- {
947
- {" hexdata" , RPCArg::Type::STR_HEX, RPCArg::Optional::NO, " the hex-encoded block data to submit" },
948
- {" dummy" , RPCArg::Type::STR, /* default */ " ignored" , " dummy value, for compatibility with BIP22. This value is ignored." },
949
- },
950
- RPCResult{RPCResult::Type::NONE, " " , " Returns JSON Null when valid, a string according to BIP22 otherwise" },
951
- RPCExamples{
944
+ " \n Attempts to submit new block to network.\n "
945
+ " See https://en.bitcoin.it/wiki/BIP_0022 for full specification.\n " ,
946
+ {
947
+ {" hexdata" , RPCArg::Type::STR_HEX, RPCArg::Optional::NO, " the hex-encoded block data to submit" },
948
+ {" dummy" , RPCArg::Type::STR, /* default */ " ignored" , " dummy value, for compatibility with BIP22. This value is ignored." },
949
+ },
950
+ {
951
+ RPCResult{" If the block was accepted" , RPCResult::Type::NONE, " " , " " },
952
+ RPCResult{" Otherwise" , RPCResult::Type::STR, " " , " According to BIP22" },
953
+ },
954
+ RPCExamples{
952
955
HelpExampleCli (" submitblock" , " \" mydata\" " )
953
956
+ HelpExampleRpc (" submitblock" , " \" mydata\" " )
954
957
},
0 commit comments