Skip to content

Commit

Permalink
Fix active_transactions.update_difficulty which was depending on the …
Browse files Browse the repository at this point in the history
…solicitor to share the block. When difficulty is updated, blocks need to be shared with a network flood
  • Loading branch information
guilhermelawless committed Feb 7, 2020
1 parent 5f4c2dd commit 314edeb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nano/core_test/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,10 @@ TEST (active_transactions, update_difficulty)
node1.process_active (send1);
node1.process_active (send2);
node1.block_processor.flush ();
system.deadline_set (10s);
// Share the updated blocks
node1.network.flood_block (send1);
node1.network.flood_block (send2);
system.deadline_set (5s);
bool done (false);
while (!done)
{
Expand Down

0 comments on commit 314edeb

Please sign in to comment.