public Block MineBlock(Block block) { var minedHeader = Miner.MineBlockHeader(block.Header, this._rules.HighestTarget); if (minedHeader == null) Assert.Fail("No block could be mined for test data header."); block = block.With(Header: minedHeader); return block; }
public Tuple<Block, ChainedBlock> MineAndAddBlock(Block block, ChainedBlock? prevChainedBlock) { var minedHeader = Miner.MineBlockHeader(block.Header, this._rules.HighestTarget); if (minedHeader == null) Assert.Fail("No block could be mined for test data header."); var minedBlock = block.With(Header: minedHeader); return AddBlock(minedBlock, prevChainedBlock); }