Andrew Chow 194710d8ff
Merge bitcoin/bitcoin#25481: wallet: unify max signature logic
d54c5c8b1b1a38b5b38e6878aea0fa8d6c1ad7e9 wallet: use CCoinControl to estimate signature size (S3RK)
a94659c84ee10ac5915eb5a6b654435183d88521 wallet: replace GetTxSpendSize with CalculateMaximumSignedInputSize (S3RK)

Pull request description:

  Currently `DummySignTx` and `DummySignInput` use different ways to determine signature size.
  This PR unifies the way wallet estimates signature size for various inputs.
  Instead of passing boolean flags from calling code the `use_max_sig` is now calculated at the place of signature creation using information available in `CCoinControl`

ACKs for top commit:
  achow101:
    ACK d54c5c8b1b1a38b5b38e6878aea0fa8d6c1ad7e9
  theStack:
    Code-review ACK d54c5c8b1b1a38b5b38e6878aea0fa8d6c1ad7e9

Tree-SHA512: e790903ad4683067070aa7dbf7434a1bd142282a5bc425112e64d88d27559f1a2cd60c68d6022feaf6b845237035cb18ece10f6243d719ba28173b69bd99110a
2022-07-08 10:27:06 -04:00
..
2022-06-10 12:39:08 +01:00
2022-06-20 12:22:05 +01:00
2022-04-20 14:29:29 +01:00
2022-06-08 13:35:32 +02:00
2022-06-20 12:22:05 +01:00
2022-06-20 12:22:05 +01:00
2021-01-04 12:31:31 +08:00
2022-05-27 16:59:45 +02:00
2022-05-30 13:55:39 +02:00
2022-06-21 22:54:55 +07:00
2022-03-10 13:05:29 +01:00