Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

base speculation staleness on time#4706

Merged
heifner merged 1 commit into
EOSIO:release/1.1from
wanderingbort:feature/only-speculate-when-current
Jul 17, 2018
Merged

base speculation staleness on time#4706
heifner merged 1 commit into
EOSIO:release/1.1from
wanderingbort:feature/only-speculate-when-current

Conversation

@wanderingbort

Copy link
Copy Markdown
Contributor

Previously, we based the stale speculation check on the _production_enabled flag which is set, at most, once per process. This lead to a situation where a node which fell behind would still speculate. This changes that check to be based on the age of the head block so, nodes which fall behind will stop speculating. NOTE, this only affects speculative modes, actual production should attempt to proceed despite the age of the head block.

relates to #4649

Previously, we based the stale speculation check on the `_production_enabled` flag which is set, at most, once per process.  This lead to a situation where a node which fell behind would still speculate.  This changes that check to be based on the age of the head block so, nodes which fall behind will stop speculating.  NOTE, this only affects speculative modes, actual production should attempt to proceed despite the age of the head block.

relates to EOSIO#4649
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants