You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4f504f8 rpc: fix code comment for bumpfee/psbtbumpfee output (Jon Atack)
5cb7ac2 rpc: fix docs for bumpfee psbt update (Jon Atack)
Pull request description:
Follow-up to #21544 and #20891 for the `bumpfee_helper` used for RPCs bumpfee and psbtbumpfee:
- "psbt" field is only returned in psbtbumpfee and not bumpfee
- bumpfee raises if private keys are disabled, so the txid help "Only returned when wallet private keys are enabled." no longer makes sense; remove it
- add missing space in RPC examples ("Bump the fee, get the new transaction'stxid")
- update txid/psbt code comments
ACKs for top commit:
klementtan:
ACK [`4f504f8`](bitcoin/bitcoin@4f504f8)
Tree-SHA512: 194faf8af52383eb8ac5cd22825265931bcde135dac79d8ecc4f84f698070da9b9373c00eef8623961881bb293157c7c9a0d71d1bcccf481ae3605a2d1444ed8
{RPCResult::Type::STR, "psbt", "The base64-encoded unsigned PSBT of the new transaction."},
3436
-
},
3437
-
want_psbt ? std::vector<RPCResult>{} : std::vector<RPCResult>{{RPCResult::Type::STR_HEX, "txid", "The id of the new transaction. Only returned when wallet private keys are enabled."}}
3438
-
),
3433
+
RPCResult::Type::OBJ, "", "", Cat(
3434
+
want_psbt ?
3435
+
std::vector<RPCResult>{{RPCResult::Type::STR, "psbt", "The base64-encoded unsigned PSBT of the new transaction."}} :
3436
+
std::vector<RPCResult>{{RPCResult::Type::STR_HEX, "txid", "The id of the new transaction."}},
3439
3437
{
3440
3438
{RPCResult::Type::STR_AMOUNT, "origfee", "The fee of the replaced transaction."},
3441
3439
{RPCResult::Type::STR_AMOUNT, "fee", "The fee of the new transaction."},
0 commit comments