mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 12:26:31 +02:00
db_lmdb: remove block timestamp too when removing a block
This commit is contained in:
parent
c93a186637
commit
1c578ad3f8
@ -269,6 +269,12 @@ void BlockchainLMDB::remove_block()
|
|||||||
throw DB_ERROR("Failed to add removal of block total generated coins to db transaction");
|
throw DB_ERROR("Failed to add removal of block total generated coins to db transaction");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mdb_del(*m_write_txn, m_block_timestamps, &k, NULL))
|
||||||
|
{
|
||||||
|
LOG_PRINT_L1("Failed to add removal of block timestamp to db transaction");
|
||||||
|
throw DB_ERROR("Failed to add removal of block timestamp to db transaction");
|
||||||
|
}
|
||||||
|
|
||||||
if (mdb_del(*m_write_txn, m_block_heights, &h, NULL))
|
if (mdb_del(*m_write_txn, m_block_heights, &h, NULL))
|
||||||
{
|
{
|
||||||
LOG_PRINT_L1("Failed to add removal of block height by hash to db transaction");
|
LOG_PRINT_L1("Failed to add removal of block height by hash to db transaction");
|
||||||
|
Loading…
Reference in New Issue
Block a user