mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-12 16:07:20 -04:00
![]() 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. |
||
---|---|---|
.. | ||
addresses.cpp | ||
backup.cpp | ||
coins.cpp | ||
encrypt.cpp | ||
signmessage.cpp | ||
spend.cpp | ||
transactions.cpp | ||
util.cpp | ||
util.h | ||
wallet.cpp | ||
wallet.h |