diff options
| author | tobtoht <tob@featherwallet.org> | 2025-09-28 18:34:03 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2025-09-28 18:34:03 +0000 |
| commit | 6552aa6165e2e8431ca44c57e5822d0d1019c4a2 (patch) | |
| tree | 00d617251805377b07bc9bbb93f7ea571607b5c3 /src/cryptonote_core | |
| parent | ca58206a577bf3aa03c7bae6fc2ad4979a372aa2 (diff) | |
| parent | 39c7a228563a7120469369554fbd4dce92cb7eba (diff) | |
| download | monzero-core-6552aa6165e2e8431ca44c57e5822d0d1019c4a2.tar.gz monzero-core-6552aa6165e2e8431ca44c57e5822d0d1019c4a2.tar.xz monzero-core-6552aa6165e2e8431ca44c57e5822d0d1019c4a2.zip | |
Merge pull request #10104
39c7a22 Send ZMQ miner notifications after txpool additions (WeebDataHoarder)
Diffstat (limited to 'src/cryptonote_core')
| -rw-r--r-- | src/cryptonote_core/blockchain.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 97275a462..74c87b921 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -4532,11 +4532,14 @@ leave: } 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)); + // 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) notifier(new_height - 1, {std::addressof(bl), 1}); |
