aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2022-03-28 15:39:25 -0400
committerAndrew Chow <achow101-github@achow101.com>2022-07-29 11:07:29 -0400
commit8a105ecd1aeff15f84c3883e2762bf71ad59d920 (patch)
tree5f2155df9b5e970daa41109b9dd46088b01eac72 /src/wallet/walletdb.h
parent5871b5b5ab57a0caf9b7514eb162c491c83281d5 (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