wallet::CalculateMaximumSignedInputSize

Get the marginal bytes if spending the specified output, using an explicit signing provider.

Synopsis

Declared in <wallet/spend.h>

int
CalculateMaximumSignedInputSize(
    CTxOut const& txout,
    COutPoint outpoint,
    SigningProvider const* pwallet,
    bool can_grind_r,
    CCoinControl const* coin_control);

Return Value

The marginal size in bytes of the signed input, or -1 on failure.

Parameters

NameDescription
txoutThe output that would be spent.
outpointThe outpoint identifying the output being spent.
pwalletThe signing provider used to estimate the signature size.
can_grind_rWhether low-R signature grinding may be assumed when sizing the input.
coin_controlCoin control settings that may override signing information.