[EOSIO/eos] bnet node to follow irreversible block instead of head (#4065)

moskvanaft commented on this pull request.

> @@ -283,7 +283,7 @@ class producer_plugin_impl : public std::enable_shared_from_thistimestamp < fc::seconds(5) || (block->block_num() % 1000 == 0) ) {
+ if( fc::time_point::now() — block->timestamp < fc::minutes(5) || (block->block_num() % 1000 == 0) ) {

It belongs to this PR in a way that if you receive only irreversible blocks your head block time is always delayed for more then 5 seconds (in case of 21 block producers). So, it’s a cheat suggested by Dan.

Добавить комментарий