mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge 69ba5727d5 into merged_master (Bitcoin PR bitcoin/bitcoin#27180)
This commit is contained in:
commit
8e8dabba5d
1 changed files with 2 additions and 2 deletions
|
|
@ -1659,9 +1659,9 @@ bool DummySignInput(const SigningProvider& provider, CMutableTransaction& tx, co
|
|||
const CScript& scriptPubKey = txout.scriptPubKey;
|
||||
SignatureData sigdata;
|
||||
|
||||
// Use max sig if watch only inputs were used or if this particular input is an external input
|
||||
// to ensure a sufficient fee is attained for the requested feerate.
|
||||
const CTxIn& tx_in = tx.vin[nIn];
|
||||
// Use max sig if watch only inputs were used, if this particular input is an external input,
|
||||
// or if this wallet uses an external signer, to ensure a sufficient fee is attained for the requested feerate.
|
||||
const bool use_max_sig = coin_control && (coin_control->fAllowWatchOnly || coin_control->IsExternalSelected(tx_in.prevout) || !can_grind_r);
|
||||
if (!ProduceSignature(provider, use_max_sig ? DUMMY_MAXIMUM_SIGNATURE_CREATOR : DUMMY_SIGNATURE_CREATOR, scriptPubKey, sigdata)) {
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue