Example #1
0
        private async Task RollbackStateForBlock(IBlock block)
        {
            var txIds = block.Body.Transactions;
            var disambiguationHash = HashHelpers.GetDisambiguationHash(block.Header.Index,
                                                                       Address.FromRawBytes(block.Header.P.ToByteArray()));

            await RollbackStateForTransactions(txIds, disambiguationHash);
        }
Example #2
0
 public Hash GetDisambiguationHash()
 {
     return(HashHelpers.GetDisambiguationHash(Index, Address.FromRawBytes(P.ToByteArray())));
 }