MCPcopy Create free account
hub / github.com/bcndev/bytecoin / TestBlockChain

Method TestBlockChain

tests/blockchain/test_blockchain.cpp:214–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213public:
214 explicit TestBlockChain(const Currency &currency) : m_currency(currency) {
215 auto &block = blocks[m_currency.genesis_block_hash];
216 block.header.hash = m_currency.genesis_block_hash;
217 block.header.height = 0;
218 block.header.difficulty = 1;
219 block.header.timestamp = m_currency.genesis_block_template.timestamp;
220 }
221 Hash get_tip_bid() const { return m_tip_bid; }
222 Height get_tip_height() const { return m_tip_height; }
223 bool add_checkpoint(const SignedCheckpoint &checkpoint) { return false; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected