Esempio n. 1
0
 /// <param name="allowUnconfirmed">Allow to spend unconfirmed transactions, if necessary.</param>
 public TransactionFactory(Network network, KeyManager keyManager, ICoinsView coins, AllTransactionStore transactionStore, string password = "", bool allowUnconfirmed = false)
 {
     Network          = network;
     KeyManager       = keyManager;
     Coins            = coins;
     TransactionStore = transactionStore;
     Password         = password;
     AllowUnconfirmed = allowUnconfirmed;
 }
Esempio n. 2
0
 public TransactionProcessor(
     AllTransactionStore transactionStore,
     KeyManager keyManager,
     Money dustThreshold,
     int privacyLevelThreshold = 100)
 {
     TransactionStore = Guard.NotNull(nameof(transactionStore), transactionStore);
     KeyManager       = Guard.NotNull(nameof(keyManager), keyManager);
     DustThreshold    = Guard.NotNull(nameof(dustThreshold), dustThreshold);
     Coins            = new CoinsRegistry(privacyLevelThreshold);
 }
 /// <param name="allowUnconfirmed">Allow to spend unconfirmed transactions, if necessary.</param>
 public TransactionFactory(Network network, KeyManager keyManager, ICoinsView coins, AllTransactionStore transactionStore, string password = "", bool allowUnconfirmed = false)
 {
     Network          = Guard.NotNull(nameof(network), network);
     KeyManager       = Guard.NotNull(nameof(keyManager), keyManager);
     Coins            = Guard.NotNull(nameof(coins), coins);
     TransactionStore = Guard.NotNull(nameof(transactionStore), transactionStore);
     Password         = password;
     AllowUnconfirmed = allowUnconfirmed;
 }