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