mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-13 15:33:51 +02:00
refactor: use SignOptions for MutableTransactionSignatureCreator
This commit is contained in:
@@ -447,7 +447,7 @@ void DoCheck(std::string prv, std::string pub, const std::string& norm_pub, int
|
||||
std::vector<CTxOut> utxos(1);
|
||||
PrecomputedTransactionData txdata;
|
||||
txdata.Init(spend, std::move(utxos), /*force=*/true);
|
||||
MutableTransactionSignatureCreator creator{spend, 0, CAmount{0}, &txdata, SIGHASH_DEFAULT};
|
||||
MutableTransactionSignatureCreator creator{spend, 0, CAmount{0}, &txdata, {.sighash_type = SIGHASH_DEFAULT}};
|
||||
SignatureData sigdata;
|
||||
// We assume there is no collision between the hashes (eg h1=SHA256(SHA256(x)) and h2=SHA256(x))
|
||||
sigdata.sha256_preimages = preimages;
|
||||
|
||||
Reference in New Issue
Block a user