| 212 | |
| 213 | public: |
| 214 | explicit TestBlockChain(const Currency ¤cy) : 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; } |
nothing calls this directly
no outgoing calls
no test coverage detected