We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62e9444 commit cb04705Copy full SHA for cb04705
src/cryptonote_core/blockchain.cpp
@@ -1315,7 +1315,7 @@ bool Blockchain::validate_miner_diardiV2(const block& b) {
1315
LOG_PRINT_L3("Blockchain::" << __func__);
1316
1317
uint8_t version = b.major_version;
1318
- uint64_t block_height = m_db->height();
+ uint64_t block_height = (b.miner_tx.vin.size() < 1 || b.miner_tx.vin[0].type() != typeid(txin_gen)) ? m_db->height() : boost::get<txin_gen>(b.miner_tx.vin[0]).height;
1319
bool isDiardiBlock = (version >= 13 && block_height % 4 == 0);
1320
if (!isDiardiBlock) return true;
1321
0 commit comments