Skip to content

Commit

Permalink
Undo unnecessary rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dsiganos committed Apr 23, 2024
1 parent e06d5b6 commit 2a1203c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions nano/core_test/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1035,21 +1035,21 @@ TEST (active_transactions, confirm_new)
{
nano::test::system system (1);
auto & node1 = *system.nodes[0];
auto send1 = nano::send_block_builder ()
.previous (nano::dev::genesis->hash ())
.destination (nano::public_key ())
.balance (nano::dev::constants.genesis_amount - 100)
.sign (nano::dev::genesis_key.prv, nano::dev::genesis_key.pub)
.work (*system.work.generate (nano::dev::genesis->hash ()))
.build ();
node1.process_active (send1);
auto send = nano::send_block_builder ()
.previous (nano::dev::genesis->hash ())
.destination (nano::public_key ())
.balance (nano::dev::constants.genesis_amount - 100)
.sign (nano::dev::genesis_key.prv, nano::dev::genesis_key.pub)
.work (*system.work.generate (nano::dev::genesis->hash ()))
.build ();
node1.process_active (send);
ASSERT_TIMELY_EQ (5s, 1, node1.active.size ());
auto & node2 = *system.add_node ();
// Add key to node2
system.wallet (1)->insert_adhoc (nano::dev::genesis_key.prv);
// Let node2 know about the block
auto send1_copy = nano::send_block_builder ().make_block ().from (*send1).build ();
ASSERT_TIMELY (5s, node2.block (send1_copy->hash ()));
auto send_copy = nano::send_block_builder ().make_block ().from (*send).build ();
ASSERT_TIMELY (5s, node2.block (send_copy->hash ()));
// Wait confirmation
ASSERT_TIMELY (5s, node1.ledger.cemented_count () == 2);
ASSERT_TIMELY (5s, node2.ledger.cemented_count () == 2);
Expand Down

0 comments on commit 2a1203c

Please sign in to comment.