private void BeforeSave(CurrencyBlock block)
 {
     foreach (var transaction in block.Transactions)
     {
         transaction.Hash = HashProvider.ComputeHashBytes(transaction);
     }
     block.Hash = block.ToHashBytes(HashProvider);
 }