mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 06:07:46 +00:00
Merge pull request #5294
77e9815d
blockchain: do not try to pop the genesis block (moneromooo-monero)
This commit is contained in:
commit
cabd848efa
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue