src/Stratis.FederatedPeg.Features.FederationGateway/TargetChain/CrossChainTransferStore.cs
/// <summary>Saves the tip and hash height.</summary>
/// <param name="dbreezeTransaction">The DBreeze transaction context to use.</param>
/// <param name="newTip">The new tip to persist.</param>
Saves the tip and hash height.
Saves the tip and hash height .
private void SaveTipHashAndHeight(DBreeze.Transactions.Transaction dbreezeTransaction, ChainedHeader newTip)
        {
            BlockLocator locator = this.chain.Tip.GetLocator();
            this.TipHashAndHeight = newTip;
            dbreezeTransaction.Insert<byte[], byte[]>(commonTableName, RepositoryTipKey, locator.ToBytes());
        }
private void SaveTipHashAndHeight ( DBreeze . Transactions . Transaction dbreezeTransaction , ChainedHeader newTip ) { BlockLocator locator = this . chain . Tip . GetLocator ( ) ; this . TipHashAndHeight = newTip ; dbreezeTransaction . Insert < byte [ ] , byte [ ] > ( commonTableName , RepositoryTipKey , locator . ToBytes ( ) ) ; }
Saves the tip and hash height.
Saves the tip and hash height .
dbreezeTransaction
DBreeze.Transactions.Transaction
The DBreeze transaction context to use.
The DBreeze transaction context to use .
newTip
ChainedHeader
The new tip to persist.
The new tip to persist .