Get the marginal bytes if spending the specified output from this transaction. Use CoinControl to determine whether to expect signature grinding when calculating the size of the input spend.
Synopsis
Declared in <wallet/spend.h>
int
CalculateMaximumSignedInputSize(
CTxOut const& txout,
CWallet const* pwallet,
CCoinControl const* coin_control);
Return Value
The marginal size in bytes of the signed input, or ‐1 on failure.
Parameters
Name |
Description |
txout |
The output that would be spent. |
pwallet |
The wallet that owns the output and provides signing information. |
coin_control |
Coin control settings used to decide whether to expect signature grinding. |
Created with MrDocs