Commit a53ae30b authored by Pavel Pavlov's avatar Pavel Pavlov

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

parent 8feb8c99
......@@ -2,11 +2,11 @@ regtest=1
rest=1
server=1
txindex=1
rpcuser=0d723c05d8207d152a545f1d3106060617b9134e
rpcpassword=0d723c05d8207d152a545f1d3106060617b9134e
port=10346
rpcport=13972
apiport=10949
rpcuser=e7adac6d6885eece28e28bf52149d749ea478b29
rpcpassword=e7adac6d6885eece28e28bf52149d749ea478b29
port=12204
rpcport=13107
apiport=13940
printtoconsole=1
keypool=10
agentprefix=node10346
agentprefix=node12204
__cookie__:7a1bd544829d4b891ae182fa73dab69b5bd13668c9987e83a595f7a4e315249f
\ No newline at end of file
__cookie__:6b5075e28a0c8589d8f8a2ee2b1960584578ee65f59ffbc58878b98697169afe
\ No newline at end of file
......@@ -2,11 +2,11 @@ regtest=1
rest=1
server=1
txindex=1
rpcuser=42852640b1aa0c94ddb6e22581fa4a672746df12
rpcpassword=42852640b1aa0c94ddb6e22581fa4a672746df12
port=12731
rpcport=12906
apiport=11375
rpcuser=e558d157acee5127662e743ca6d4961358bc8558
rpcpassword=e558d157acee5127662e743ca6d4961358bc8558
port=11419
rpcport=10151
apiport=11641
printtoconsole=1
keypool=10
agentprefix=node12731
agentprefix=node11419
__cookie__:f180e01485a65770cdd27b6a294693437ca63ea018034403cd3673ebd1b4d110
\ No newline at end of file
__cookie__:f2ff8f2ce53715a9d443201bf00e34ddf1694afcebe68bb7a402ff2c4a851d60
\ No newline at end of file
[2018-07-30 19:40:25.1960 1] INFO: Stratis.Bitcoin.FullNode.Initialize Full node initialized on RegTest
[2018-07-30 19:40:25.1960 1] INFO: Stratis.Bitcoin.FullNode.Start Starting node...
[2018-07-30 19:40:25.6165 1] INFO: Stratis.Bitcoin.Base.BaseFeature+<StartChainAsync>d__26.MoveNext Loading finalized block height
[2018-07-30 19:40:25.6165 6] INFO: Stratis.Bitcoin.Base.BaseFeature+<StartChainAsync>d__26.MoveNext Loading chain
[2018-07-30 19:40:25.6325 6] INFO: Stratis.Bitcoin.Base.BaseFeature+<StartChainAsync>d__26.MoveNext Chain loaded at height 0
[2018-07-30 19:40:25.6325 7] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext FlushChain starting
[2018-07-30 19:40:25.6325 10] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext Periodic peer flush... starting
[2018-07-30 19:40:26.5956 10] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext Consensus Loop starting
[2018-07-30 19:40:26.6009 1] INFO: Stratis.Bitcoin.Features.MemoryPool.MempoolManager+<LoadPoolAsync>d__25.MoveNext Loading Memory Pool...
[2018-07-30 19:40:26.6009 6] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext MemoryPool.RelayWorker starting
[2018-07-30 19:40:26.6009 13] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext wallet persist job starting
[2018-07-30 19:40:26.6009 1] INFO: Stratis.Bitcoin.Features.Wallet.WalletSyncManager.Start WalletSyncManager initialized. Wallet at block 0.
[2018-07-30 19:40:26.6214 1] INFO: Stratis.Bitcoin.Features.RPC.RPCFeature.Initialize RPC Server listening on:
http://[::1]:12906/
http://127.0.0.1:12906/
[2018-07-30 19:40:26.6214 6] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext DiscoverPeersAsync starting
[2018-07-30 19:40:26.6214 12] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext PeerConnectorAddNode.ConnectAsync starting
[2018-07-30 19:40:26.6214 12] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext PeerConnectorDiscovery.ConnectAsync starting
[2018-07-30 19:40:26.6324 1] INFO: Stratis.Bitcoin.Connection.ConnectionManager.StartNodeServer Node listening on:
0.0.0.0:12731
[2018-07-30 19:40:26.6324 13] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext PeriodicLog starting
[2018-07-30 19:40:30.1815 13] INFO: Stratis.Bitcoin.FullNode.<StartPeriodicLog>b__75_0 ======Node stats====== 07/30/2018 19:40:30 agent node10346-StratisBitcoin:1.1.2
Headers.Height: 0 Headers.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
BlockStore.Height: 0 BlockStore.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
Consensus.Height: 0 Consensus.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
Wallet.Height: No Wallet
======BlockStore======
Pending Blocks: 0
Batch Size: 0 kb / 5000 kb
=======Mempool=======
MempoolSize: 0 DynamicSize: 0 kb OrphanSize: 0
======Connection======
[2018-07-30 19:40:30.8885 6] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext WalletManager.DownloadChain starting
[2018-07-30 19:40:31.7441 17] INFO: Stratis.Bitcoin.FullNode.<StartPeriodicLog>b__75_0 ======Node stats====== 07/30/2018 19:40:31 agent node12731-StratisBitcoin:1.1.2
Headers.Height: 0 Headers.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
BlockStore.Height: 0 BlockStore.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
Consensus.Height: 0 Consensus.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
Wallet.Height: No Wallet
======BlockStore======
Pending Blocks: 0
Batch Size: 0 kb / 5000 kb
=======Mempool=======
MempoolSize: 0 DynamicSize: 0 kb OrphanSize: 0
======Connection======
[2018-07-30 19:40:33.9427 6] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext WalletManager.DownloadChain starting
[2018-07-30 19:40:35.1949 7] INFO: Stratis.Bitcoin.FullNode.<StartPeriodicLog>b__75_0 ======Node stats====== 07/30/2018 19:40:35 agent node10346-StratisBitcoin:1.1.2
[2018-07-31 19:27:17.8281 1] INFO: Stratis.Bitcoin.FullNode.Initialize Full node initialized on RegTest
[2018-07-31 19:27:17.8281 1] INFO: Stratis.Bitcoin.FullNode.Start Starting node...
[2018-07-31 19:27:18.1563 1] INFO: Stratis.Bitcoin.Base.BaseFeature+<StartChainAsync>d__26.MoveNext Loading finalized block height
[2018-07-31 19:27:18.1563 5] INFO: Stratis.Bitcoin.Base.BaseFeature+<StartChainAsync>d__26.MoveNext Loading chain
[2018-07-31 19:27:18.1741 5] INFO: Stratis.Bitcoin.Base.BaseFeature+<StartChainAsync>d__26.MoveNext Chain loaded at height 0
[2018-07-31 19:27:18.1741 5] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext FlushChain starting
[2018-07-31 19:27:18.1741 6] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext Periodic peer flush... starting
[2018-07-31 19:27:19.2660 11] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext Consensus Loop starting
[2018-07-31 19:27:19.2660 1] INFO: Stratis.Bitcoin.Features.MemoryPool.MempoolManager+<LoadPoolAsync>d__25.MoveNext Loading Memory Pool...
[2018-07-31 19:27:19.2841 5] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext MemoryPool.RelayWorker starting
[2018-07-31 19:27:19.2841 5] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext wallet persist job starting
[2018-07-31 19:27:19.2841 1] INFO: Stratis.Bitcoin.Features.Wallet.WalletSyncManager.Start WalletSyncManager initialized. Wallet at block 0.
[2018-07-31 19:27:19.3000 1] INFO: Stratis.Bitcoin.Features.RPC.RPCFeature.Initialize RPC Server listening on:
http://[::1]:10151/
http://127.0.0.1:10151/
[2018-07-31 19:27:19.3000 5] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext DiscoverPeersAsync starting
[2018-07-31 19:27:19.3000 17] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext PeerConnectorAddNode.ConnectAsync starting
[2018-07-31 19:27:19.3120 17] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext PeerConnectorDiscovery.ConnectAsync starting
[2018-07-31 19:27:19.3120 1] INFO: Stratis.Bitcoin.Connection.ConnectionManager.StartNodeServer Node listening on:
0.0.0.0:11419
[2018-07-31 19:27:19.3120 5] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext PeriodicLog starting
[2018-07-31 19:27:22.7696 6] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext WalletManager.DownloadChain starting
[2018-07-31 19:27:23.7812 5] INFO: Stratis.Bitcoin.FullNode.<StartPeriodicLog>b__75_0 ======Node stats====== 07/31/2018 19:27:23 agent node12204-StratisBitcoin:1.1.2
Headers.Height: 0 Headers.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
BlockStore.Height: 0 BlockStore.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
Consensus.Height: 0 Consensus.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
......@@ -73,12 +40,11 @@ Wallet: mywallet, Confirmed balance: 0.00000000
======Connection======
[2018-07-30 19:40:35.9040 6] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext WalletManager.DownloadChain stopping
[2018-07-30 19:40:36.7576 5] INFO: Stratis.Bitcoin.FullNode.<StartPeriodicLog>b__75_0 ======Node stats====== 07/30/2018 19:40:36 agent node12731-StratisBitcoin:1.1.2
[2018-07-31 19:27:25.2652 12] INFO: Stratis.Bitcoin.FullNode.<StartPeriodicLog>b__75_0 ======Node stats====== 07/31/2018 19:27:25 agent node11419-StratisBitcoin:1.1.2
Headers.Height: 0 Headers.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
BlockStore.Height: 0 BlockStore.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
Consensus.Height: 0 Consensus.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
Wallet.Height: 0 Wallet.Hash: 0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
Wallet.Height: No Wallet
======BlockStore======
Pending Blocks: 0
......@@ -87,9 +53,7 @@ Batch Size: 0 kb / 5000 kb
=======Mempool=======
MempoolSize: 0 DynamicSize: 0 kb OrphanSize: 0
======Wallets======
Wallet: mywallet, Confirmed balance: 0.00000000
======Connection======
[2018-07-31 19:27:26.0006 13] INFO: Stratis.Bitcoin.Utilities.AsyncLoop+<>c__DisplayClass16_0+<<StartAsync>b__0>d.MoveNext WalletManager.DownloadChain starting
......@@ -10,6 +10,8 @@ namespace NBitcoin.Networks
{
public class DeStreamTest : Network
{
public IPEndPoint Endpoint { get { return new IPEndPoint(IPAddress.Parse("127.0.0.1"), 50861); } }
public DeStreamTest() //: base()
{
this.DNSSeeds = new List<DNSSeedData>();
......
......@@ -138,6 +138,7 @@ namespace Stratis.Bitcoin.Features.Wallet.Tests
};
walletTransactionHandler.BuildTransaction(CreateContext(walletReference, "password", destinationKeys.PubKey.ScriptPubKey, new Money(7500), FeeType.Low, 0));
int qwe = 1;
});
}
......
......@@ -23,6 +23,17 @@ namespace Stratis.Bitcoin.IntegrationTests.Common
}
}
public static bool AreNodesSyncedTemp(CoreNode node1, FullNode node2)
{
if (node1.FullNode.Chain.Tip.HashBlock != node2.Chain.Tip.HashBlock) return false;
if (node1.FullNode.ChainBehaviorState.ConsensusTip.HashBlock != node2.ChainBehaviorState.ConsensusTip.HashBlock) return false;
if (node1.FullNode.GetBlockStoreTip().HashBlock != node2.GetBlockStoreTip().HashBlock) return false;
if (node1.FullNode.MempoolManager().InfoAll().Count != node2.MempoolManager().InfoAll().Count) return false;
if (node1.FullNode.WalletManager().WalletTipHash != node2.WalletManager().WalletTipHash) return false;
//if (node1.CreateRPCClient().GetBestBlockHash() != node2.CreateRPCClient().GetBestBlockHash()) return false;
return true;
}
public static bool AreNodesSynced(CoreNode node1, CoreNode node2)
{
if (node1.FullNode.Chain.Tip.HashBlock != node2.FullNode.Chain.Tip.HashBlock) return false;
......
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