0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-03-12 16:07:20 -04:00
bitcoin-core/src/wallet/rpc
Andrew Chow 6fa762a372 rpc, wallet: Allow users to specify input weights
Coin selection requires knowing the weight of a transaction so that fees
can be estimated. However for external inputs, the weight may not be
avialble, and solving data may not be enough as the input could be one
that we do not support. By allowing users to specify input weights,
those external inputs can be included in the transaction.

Additionally, if the weight for an input is specified, that value will
always be used, regardless of whether the input is in the wallet or
solving data is available. This allows us to account for scenarios where
the wallet may be more conservative and estimate a larger input than may
actually be created.

For example, we assume the maximum DER signature size, but an external
input may be signed by a wallet which does nonce grinding in order to get
a smaller signature. In that case, the user can specify the smaller
input weight to avoid overpaying transaction fees.
2022-01-24 11:29:38 -05:00
..
addresses.cpp Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
backup.cpp Merge bitcoin/bitcoin#23497: Add src/node/ and src/wallet/ code to node:: and wallet:: namespaces 2022-01-11 11:11:00 +01:00
coins.cpp Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
encrypt.cpp Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
signmessage.cpp Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
spend.cpp rpc, wallet: Allow users to specify input weights 2022-01-24 11:29:38 -05:00
transactions.cpp Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
util.cpp Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
util.h Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
wallet.cpp Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00
wallet.h Add src/wallet/* code to wallet:: namespace 2022-01-06 22:14:16 -05:00