Skip to content

Commit

Permalink
Call confirm_if_quorum when we get a new block (#1147)
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Sep 5, 2018
1 parent 77c052d commit 4d68b51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rai/node/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3746,6 +3746,7 @@ bool rai::election::publish (std::shared_ptr<rai::block> block_a)
if (blocks.find (block_a->hash ()) == blocks.end ())
{
blocks.insert (std::make_pair (block_a->hash (), block_a));
confirm_if_quorum (transaction);
node.network.republish_block (transaction, block_a, false);
}
}
Expand Down

0 comments on commit 4d68b51

Please sign in to comment.