mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-14 05:42:36 -03:00
doc: DummySignInput mention external signer
This commit is contained in:
parent
cb40639bdf
commit
6fc5f4fdb6
1 changed files with 2 additions and 2 deletions
|
@ -1648,8 +1648,8 @@ bool DummySignInput(const SigningProvider& provider, CTxIn &tx_in, const CTxOut
|
||||||
const CScript& scriptPubKey = txout.scriptPubKey;
|
const CScript& scriptPubKey = txout.scriptPubKey;
|
||||||
SignatureData sigdata;
|
SignatureData sigdata;
|
||||||
|
|
||||||
// Use max sig if watch only inputs were used or if this particular input is an external input
|
// Use max sig if watch only inputs were used, if this particular input is an external input,
|
||||||
// to ensure a sufficient fee is attained for the requested feerate.
|
// 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);
|
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)) {
|
if (!ProduceSignature(provider, use_max_sig ? DUMMY_MAXIMUM_SIGNATURE_CREATOR : DUMMY_SIGNATURE_CREATOR, scriptPubKey, sigdata)) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue