Skip to content

Commit e559b1c

Browse files
authored
Merge branch 'master' into rpc-fixes
2 parents 4821ef4 + d2ce7b7 commit e559b1c

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/rpc/output_script.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static RPCHelpMan validateaddress()
5151
{RPCResult::Type::STR, "address", ""},
5252
{RPCResult::Type::STR_HEX, "scriptPubKey", "The hex-encoded scriptPubKey generated by the address"},
5353
{RPCResult::Type::STR_HEX, "confidential_key", "The raw blinding public key for that address, if any. \"\" if none"},
54-
{RPCResult::Type::STR_HEX, "unconfidential", "The address without confidentiality key"},
54+
{RPCResult::Type::STR, "unconfidential", "The address without confidentiality key"},
5555
{RPCResult::Type::BOOL, "isscript", "If the key is a script"},
5656
{RPCResult::Type::BOOL, "iswitness", "If the address is a witness address"},
5757
{RPCResult::Type::NUM, "witness_version", /*optional=*/true, "The version number of the witness program"},

src/rpc/rawtransaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2579,7 +2579,7 @@ static RPCHelpMan rawblindrawtransaction()
25792579
"Returns the hex-encoded raw transaction.\n"
25802580
"The input raw transaction cannot have already-blinded outputs.\n"
25812581
"The output keys used can be specified by using a confidential address in createrawtransaction.\n"
2582-
"If an additional blinded output is required to make a balanced blinding, a 0-value unspendable output will be added. Since there is no access to the wallet the blinding pubkey from the last output with blinding key will be repeated.\n"
2582+
"If blinded inputs exist but no output has a blinding pubkey, the caller must add another blindable output; this RPC cannot derive a wallet blinding key and will fail instead of adding a dummy output.\n"
25832583
"You can not blind issuances with this call.\n",
25842584
{
25852585
{"hexstring", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "A hex-encoded raw transaction."},

src/wallet/rpc/backup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2233,7 +2233,7 @@ RPCHelpMan importissuanceblindingkey()
22332233
},
22342234
RPCResult{RPCResult::Type::NONE, "", ""},
22352235
RPCExamples{
2236-
HelpExampleCli("importissuanceblindingkey", "<txid> 0 <blindinghex>")
2236+
HelpExampleCli("importissuanceblindingkey", "\"<txid>\" 0 \"<blindingkey>\"")
22372237
},
22382238
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
22392239
{

src/wallet/rpc/elements.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ RPCHelpMan getpegoutkeys()
19621962
"\n(DEPRECATED) Please see `initpegoutwallet` and `sendtomainchain` for best-supported and easiest workflow. This call is for the Liquid network participants' `offline` wallet ONLY. Returns `sumkeys` corresponding to the sum of the Offline PAK and the imported Bitcoin key. The wallet must have the Offline private PAK to succeed. The output will be used in `generatepegoutproof` and `sendtomainchain`. Care is required to keep the bitcoin private key, as well as the `sumkey` safe, as a leak of both results in the leak of your `offlinekey`. Therefore it is recommended to create Bitcoin keys and do Bitcoin transaction signing directly on an offline wallet co-located with your offline Liquid wallet.\n",
19631963
{
19641964
{"btcprivkey", RPCArg::Type::STR, RPCArg::Optional::NO, "Base58 Bitcoin private key that will be combined with the offline privkey"},
1965-
{"offlinepubkey", RPCArg::Type::STR_HEX, RPCArg::Optional::OMITTED, "Hex pubkey of key to combine with btcprivkey. Primarily intended for integration testing."},
1965+
{"offlinepubkey", RPCArg::Type::STR_HEX, RPCArg::Optional::NO, "33-byte compressed public key encoded as 66 hex characters, to combine with btcprivkey. Primarily intended for integration testing."},
19661966
},
19671967
RPCResult{
19681968
RPCResult::Type::OBJ, "", "",
@@ -1973,10 +1973,8 @@ RPCHelpMan getpegoutkeys()
19731973
},
19741974
},
19751975
RPCExamples{
1976-
HelpExampleCli("getpegoutkeys", "")
1977-
+ HelpExampleCli("getpegoutkeys", "\"5Kb8kLf9zgWQnogidDA76MzPL6TsZZY36hWXMssSzNydYXYB9KF\" \"0389275d512326f7016e014d8625f709c01f23bd0dc16522bf9845a9ee1ef6cbf9\"")
1978-
+ HelpExampleRpc("getpegoutkeys", "")
1979-
+ HelpExampleRpc("getpegoutkeys", "\"5Kb8kLf9zgWQnogidDA76MzPL6TsZZY36hWXMssSzNydYXYB9KF\", \"0389275d512326f7016e014d8625f709c01f23bd0dc16522bf9845a9ee1ef6cbf9\"")
1976+
HelpExampleCli("getpegoutkeys", "\"5Kb8kLf9zgWQnogidDA76MzPL6TsZZY36hWXMssSzNydYXYB9KF\" \"0389275d512326f7016e014d8625f709c01f23bd0dc16522bf9845a9ee1ef6cbf9\"")
1977+
+ HelpExampleRpc("getpegoutkeys", "\"5Kb8kLf9zgWQnogidDA76MzPL6TsZZY36hWXMssSzNydYXYB9KF\", \"0389275d512326f7016e014d8625f709c01f23bd0dc16522bf9845a9ee1ef6cbf9\"")
19801978
},
19811979
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
19821980
{

0 commit comments

Comments
 (0)