You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mining Rule Engine Scaffolding and Sync Rate Rule implementation (#654)
* Initial implementation of Mining Rule Engine
- monitor sync state and update anything that cares about is_sycned to
use the updated rules
- sync rate rule: allow mining if sync rate is below threshold and
finality point is recent
Move most is_nearly_synced logic to mining_rule_engine
- instantiate Hub in daemon
- Reverse the dependency of flow context and MRE
- remove the async_is_nearly_synced consensus api
- add get_sink_daa_score_timestamp consensus API
Move is_nearly_synced logic from params to rule engine
* Add MiningRules and wire it up
* Implement MiningRule trait in a submodule
* Implement Sync Rate Rule
* Update is_synced for non-mining context
- Make it not depend on sync rate rule
* comment fixes
* Process relay blocks if sync rate rule is triggered
0 commit comments