Skip to content

Commit

Permalink
active_transactions test cleanup (#2012)
Browse files Browse the repository at this point in the history
remove unused &wallet
delay_frontier_confirmation_height_updating to keep unconfirmed transactions in ledger from getting re-added to active_transactions
  • Loading branch information
Russel Waters committed May 22, 2019
1 parent 87d0b04 commit 0789409
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nano/core_test/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ TEST (active_transactions, adjusted_difficulty_priority)
nano::node_config node_config (24000, system.logging);
node_config.enable_voting = false;
auto & node1 = *system.add_node (node_config);
auto & wallet (*system.wallet (0));
nano::genesis genesis;
nano::keypair key1, key2, key3;
auto transaction (node1.store.tx_begin_read ());
Expand Down Expand Up @@ -147,10 +146,12 @@ TEST (active_transactions, adjusted_difficulty_priority)

TEST (active_transactions, keep_local)
{
//delay_frontier_confirmation_height_updating to allow the test to before
bool delay_frontier_confirmation_height_updating = true;
nano::system system;
nano::node_config node_config (24000, system.logging);
node_config.enable_voting = false;
auto & node1 = *system.add_node (node_config);
auto & node1 = *system.add_node (node_config, delay_frontier_confirmation_height_updating);
auto & wallet (*system.wallet (0));
nano::genesis genesis;
//key 1/2 will be managed by the wallet
Expand Down Expand Up @@ -208,11 +209,12 @@ TEST (active_transactions, keep_local)

TEST (active_transactions, prioritize_chains)
{
//delay_frontier_confirmation_height_updating to allow the test to before
bool delay_frontier_confirmation_height_updating = true;
nano::system system;
nano::node_config node_config (24000, system.logging);
node_config.enable_voting = false;
auto & node1 = *system.add_node (node_config);
auto & wallet (*system.wallet (0));
auto & node1 = *system.add_node (node_config, delay_frontier_confirmation_height_updating);
nano::genesis genesis;
nano::keypair key1, key2, key3;

Expand Down

0 comments on commit 0789409

Please sign in to comment.