mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 18:47:36 -07:00
blockchain: do not try to pop the genesis block
This commit is contained in:
parent
1d1a02e9f9
commit
77e9815db7
@ -645,6 +645,8 @@ block Blockchain::pop_block_from_blockchain()
|
||||
block popped_block;
|
||||
std::vector<transaction> popped_txs;
|
||||
|
||||
CHECK_AND_ASSERT_THROW_MES(m_db->height() > 1, "Cannot pop the genesis block");
|
||||
|
||||
try
|
||||
{
|
||||
m_db->pop_block(popped_block, popped_txs);
|
||||
|
Loading…
Reference in New Issue
Block a user