src/Stratis.Features.FederatedPeg.Tests/CrossChainTestBase.cs
/// <summary>
/// Adds a previously created block to the dictionary used by the mock block repository.
/// </summary>
/// <param name="block">The block to add.</param>
/// <returns>The last chained header.</returns>
Adds a previously created block to the dictionary used by the mock block repository.
Adds a previously created block to the dictionary used by the mock block repository .
protected ChainedHeader AppendBlock(Block block)
        {
            if (!this.chain.TrySetTip(block.Header, out ChainedHeader last))
                throw new InvalidOperationException("Previous not existing");
            this.blockDict[block.GetHash()] = block;
            this.federationWalletSyncManager.ProcessBlock(block);
            return last;
        }
protected ChainedHeader AppendBlock ( Block block ) { if ( ! this . chain . TrySetTip ( block . Header , out ChainedHeader last ) ) throw new InvalidOperationException ( " " ) ; this . blockDict [ block . GetHash ( ) ] = block ; this . federationWalletSyncManager . ProcessBlock ( block ) ; return last ; }
Adds a previously created block to the dictionary used by the mock block repository.
Adds a previously created block to the dictionary used by the mock block repository .
The last chained header.
The last chained header .
block
Block
The block to add.
The block to add .