public Block CreateBlock(Transaction transaction) { var latestBlock = GetLatestBlock(); var newblock = new Block(DateTimeOffsetProvider.GetDateTimeOffset(), latestBlock.Index + 1, latestBlock.Hash, transaction); return(newblock); }