diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-03-28 15:39:25 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-07-29 11:07:29 -0400 |
commit | 8a105ecd1aeff15f84c3883e2762bf71ad59d920 (patch) | |
tree | 5f2155df9b5e970daa41109b9dd46088b01eac72 /src/wallet/walletdb.h | |
parent | 5871b5b5ab57a0caf9b7514eb162c491c83281d5 (diff) |
wallet: Use CalculateMaximumSignedInputSize to indicate solvability
In AvailableCoins, we need to know whether we can solve for an output.
This was done by using IsSolvable, which just calls ProduceSignature and
produces a dummy signature. However, we already do that in order to get
the size of the input by using CalculateMaximumSignedInputSize. As this
function returns -1 if ProduceSignature fails, we can just remove the
use of IsSolvable and check that input_bytes is not -1 to determine
the solvability of an output.
Diffstat (limited to 'src/wallet/walletdb.h')
0 files changed, 0 insertions, 0 deletions