Exemple #1
0
 public Block(BlockHeader blockHeader, IEnumerable <Transaction> transactions, IEnumerable <BlockHeader> ommers)
 {
     Header = blockHeader;
     Body   = new BlockBody(transactions.ToArray(), ommers.ToArray());
 }
Exemple #2
0
 private Block()
 {
     Body = new BlockBody();
 }
Exemple #3
0
 public Block(BlockHeader blockHeader, BlockBody body)
 {
     Header = blockHeader;
     Body   = body;
 }
Exemple #4
0
 public Block WithReplacedBody(BlockBody newBody)
 {
     return(new(Header, newBody));
 }