Skip to content

Commit adc3955

Browse files
committed
Merge pull request #10103
bc8b210 Send ZMQ miner notifications after txpool additions (WeebDataHoarder)
2 parents a6d0ac3 + bc8b210 commit adc3955

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/cryptonote_core/blockchain.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4452,11 +4452,14 @@ bool Blockchain::handle_block_to_main_chain(const block& bl, const crypto::hash&
44524452
}
44534453

44544454
const crypto::hash seedhash = get_block_id_by_height(crypto::rx_seedheight(new_height));
4455-
send_miner_notifications(new_height, seedhash, id, already_generated_coins);
44564455

4457-
// Make sure that txpool notifications happen BEFORE block notifications
4456+
// Make sure that txpool notifications happen BEFORE block and miner data notifications
44584457
notify_txpool_event(std::move(txpool_events));
44594458

4459+
// send miner notifications to switch as soon as possible
4460+
send_miner_notifications(new_height, seedhash, id, already_generated_coins);
4461+
4462+
// then send block notifications
44604463
for (const auto& notifier: m_block_notifiers)
44614464
notifier(new_height - 1, {std::addressof(bl), 1});
44624465

0 commit comments

Comments
 (0)