Call confirm_if_quorum when we get a new block (#1147)

This commit is contained in:
Lee Bousfield 2018-09-05 16:44:14 -05:00 committed by GitHub
commit 15e7db04de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3753,6 +3753,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);
}
}