Skip to content
Permalink
Browse files

blockchain: do not try to pop the genesis block

  • Loading branch information...
moneromooo-monero committed Mar 15, 2019
1 parent 1d1a02e commit 77e9815db7c5cea2649b28ef0ba3eefd106af014
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/cryptonote_core/blockchain.cpp
@@ -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);

0 comments on commit 77e9815

Please sign in to comment.
You can’t perform that action at this time.