aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/node_server.cpp
diff options
context:
space:
mode:
authorMonzero Build System <builds@monzero.org>2026-08-15 21:14:26 +0100
committerMonzero Build System <builds@monzero.org>2026-08-15 21:14:26 +0100
commit28f1919249465d3230f45ed21686c5a836d56df0 (patch)
tree948fe5e7052c45c366c24a82b485ae9d1d38e39b /tests/unit_tests/node_server.cpp
parent4f92268d7c16741cfb41e5bbe2aa46cc260a9ea5 (diff)
downloadmonzero-core-28f1919249465d3230f45ed21686c5a836d56df0.tar.gz
monzero-core-28f1919249465d3230f45ed21686c5a836d56df0.tar.xz
monzero-core-28f1919249465d3230f45ed21686c5a836d56df0.zip
Establish Monzero Phase 0 and inactive assets baselinemonzero-phase0-assets-prototype-20260815
Diffstat (limited to 'tests/unit_tests/node_server.cpp')
-rw-r--r--tests/unit_tests/node_server.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/unit_tests/node_server.cpp b/tests/unit_tests/node_server.cpp
index 525bdc4c9..32d3fd15a 100644
--- a/tests/unit_tests/node_server.cpp
+++ b/tests/unit_tests/node_server.cpp
@@ -585,7 +585,16 @@ TEST(cryptonote_protocol_handler, race_condition)
reward,
hardfork
);
- block.miner_tx.vout.push_back(cryptonote::tx_out{reward, cryptonote::txout_to_key{}});
+ // Match the active hard-fork output rules. Always constructing the legacy
+ // txout_to_key form makes the synthetic alternate chain invalid after the
+ // view-tag grace period and leaves this concurrency test waiting forever
+ // for synchronization that cannot complete.
+ if (hardfork > HF_VERSION_VIEW_TAGS)
+ block.miner_tx.vout.push_back(cryptonote::tx_out{
+ reward, cryptonote::txout_to_tagged_key{crypto::public_key{}, crypto::view_tag{}}});
+ else
+ block.miner_tx.vout.push_back(cryptonote::tx_out{
+ reward, cryptonote::txout_to_key{crypto::public_key{}}});
diff = storage.get_difficulty_for_next_block();
};
struct stat {