src/Stratis.FederatedPeg.Tests/CrossChainTransferStoreTests.cs
/// <summary>
/// Test that after synchronizing with the chain the store tip equals the chain tip.
/// </summary>
Test that after synchronizing with the chain the store tip equals the chain tip.
Test that after synchronizing with the chain the store tip equals the chain tip .
[Fact]
        public void StartSynchronizesWithWallet()
        {
            var dataFolder = new DataFolder(CreateTestDir(this));
            this.Init(dataFolder);
            this.AppendBlocks(this.federationGatewaySettings.MinCoinMaturity);
            using (ICrossChainTransferStore crossChainTransferStore = this.CreateStore())
            {
                crossChainTransferStore.Initialize();
                crossChainTransferStore.Start();
                Assert.Equal(this.wallet.LastBlockSyncedHash, crossChainTransferStore.TipHashAndHeight.HashBlock);
                Assert.Equal(this.wallet.LastBlockSyncedHeight, crossChainTransferStore.TipHashAndHeight.Height);
            }
        }
[ Fact ] public void StartSynchronizesWithWallet ( ) { var dataFolder = new DataFolder ( CreateTestDir ( this ) ) ; this . Init ( dataFolder ) ; this . AppendBlocks ( this . federationGatewaySettings . MinCoinMaturity ) ; using ( ICrossChainTransferStore crossChainTransferStore = this . CreateStore ( ) ) { crossChainTransferStore . Initialize ( ) ; crossChainTransferStore . Start ( ) ; Assert . Equal ( this . wallet . LastBlockSyncedHash , crossChainTransferStore . TipHashAndHeight . HashBlock ) ; Assert . Equal ( this . wallet . LastBlockSyncedHeight , crossChainTransferStore . TipHashAndHeight . Height ) ; } }
Test that after synchronizing with the chain the store tip equals the chain tip.
Test that after synchronizing with the chain the store tip equals the chain tip .