Commit 64caca76 authored by Pavel Pavlov's avatar Pavel Pavlov

Сreate a test transaction in the block and add it to the chain

- created transaction
- created wallet
- created block and added transaction
parent 94a5c7f6
This diff is collapsed.
...@@ -2430,7 +2430,7 @@ namespace Stratis.Bitcoin.Features.Wallet.Tests ...@@ -2430,7 +2430,7 @@ namespace Stratis.Bitcoin.Features.Wallet.Tests
var walletFeePolicy = new Mock<IWalletFeePolicy>(); var walletFeePolicy = new Mock<IWalletFeePolicy>();
walletFeePolicy.Setup(w => w.GetMinimumFee(258, 50)) walletFeePolicy.Setup(w => w.GetMinimumFee(258, 50))
.Returns(new Money(5000)); .Returns(new Money(5000));
HdAddress spentAddressResult0 = wallet.AccountsRoot.ElementAt(0).Accounts.ElementAt(0).ExternalAddresses.ElementAt(0);
var walletManager = new WalletManager(this.LoggerFactory.Object, Network.Main, chainInfo.chain, NodeSettings.Default(), new Mock<WalletSettings>().Object, var walletManager = new WalletManager(this.LoggerFactory.Object, Network.Main, chainInfo.chain, NodeSettings.Default(), new Mock<WalletSettings>().Object,
dataFolder, walletFeePolicy.Object, new Mock<IAsyncLoopFactory>().Object, new NodeLifetime(), DateTimeProvider.Default); dataFolder, walletFeePolicy.Object, new Mock<IAsyncLoopFactory>().Object, new NodeLifetime(), DateTimeProvider.Default);
walletManager.Wallets.Add(wallet); walletManager.Wallets.Add(wallet);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment