-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TransactionFactory
: Introduce TransactionParameters
#11738
TransactionFactory
: Introduce TransactionParameters
#11738
Conversation
@@ -48,10 +48,22 @@ public TransactionFactory(Network network, KeyManager keyManager, ICoinsView coi | |||
IEnumerable<OutPoint>? allowedInputs = null, | |||
IPayjoinClient? payjoinClient = null, | |||
Func<LockTime>? lockTimeSelector = null, | |||
bool allowUnconfirmed = true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this method is called only from tests.
f0ea40a
to
bb329e3
Compare
@@ -65,15 +65,20 @@ public static BuildTransactionResult BuildTransaction(Wallet wallet, Transaction | |||
label: transactionInfo.Recipient); | |||
|
|||
var network = keyManager.GetNetwork(); | |||
var builder = new TransactionFactory(network, keyManager, allCoins, new EmptyTransactionStore(network), password, true); | |||
var builder = new TransactionFactory(network, keyManager, allCoins, new EmptyTransactionStore(network), password); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
-> L73 AllowUnconfirmed: true
Co-authored-by: Szpoti <balage.farago@gmail.com>
bb329e3
to
fa6f46e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, more compact and much smaller approach.
Depends on #11737
Refactored #11709 (credits to Szpoti).
Note: This PR intentionally attempts not to modify tests.