mirror of
https://github.com/monero-project/monero.git
synced 2025-12-09 00:21:28 +09:00
Merge pull request #10103
bc8b210 Send ZMQ miner notifications after txpool additions (WeebDataHoarder)
This commit is contained in:
commit
adc395577a
@ -4452,11 +4452,14 @@ leave:
|
|||||||
}
|
}
|
||||||
|
|
||||||
const crypto::hash seedhash = get_block_id_by_height(crypto::rx_seedheight(new_height));
|
const crypto::hash seedhash = get_block_id_by_height(crypto::rx_seedheight(new_height));
|
||||||
send_miner_notifications(new_height, seedhash, id, already_generated_coins);
|
|
||||||
|
|
||||||
// Make sure that txpool notifications happen BEFORE block notifications
|
// Make sure that txpool notifications happen BEFORE block and miner data notifications
|
||||||
notify_txpool_event(std::move(txpool_events));
|
notify_txpool_event(std::move(txpool_events));
|
||||||
|
|
||||||
|
// send miner notifications to switch as soon as possible
|
||||||
|
send_miner_notifications(new_height, seedhash, id, already_generated_coins);
|
||||||
|
|
||||||
|
// then send block notifications
|
||||||
for (const auto& notifier: m_block_notifiers)
|
for (const auto& notifier: m_block_notifiers)
|
||||||
notifier(new_height - 1, {std::addressof(bl), 1});
|
notifier(new_height - 1, {std::addressof(bl), 1});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user