Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/bci 2996 local finality violation (#13048)
* implement RPCClient changes * simplify interception of RPC's view on chain * Remove redundant changes * remove redundant changes * do not pick RPC as active if it's lagging on finalized block * fix race * minor refactor * Added FinalizedBlockOffset to config * HeadTracker support of FinalizedBlockOffset * fix lint issues * switch logpoller to head tracker * remove redundant changes * fix build * Capture latest chain info on RPC level to avoid race on state transition if we are communicating with RPC with highest finalized block * EnforceRepeatableRead config option * ensure HeadTracked does not miss block if it's committed between initialHead processing and subscription * hot fix flakey test * fix build & changeset * remove outdated test * fix headtracker tests * use polling in head tracker to get latest finalized block * fix relay * regen mocks * use proper context in the LogPoller's latestBlocks * fix flaky test * fixes for changes from develop branch * replace panic with FailNow * report dead node only if it's dead for long enough * fix racy test * rollback foundry change caused by merge with develop * use active node as source of HighestChainInfo to reduce number of transitions to nodeStateFinalizedBlockOutOfSync * optimised loading of latest finalized block * fix merge conflicts * make generate * simplify capturing of app layer observations * ensure logpoller is not affected by FinalityTagBypass * fix comment * reset keystone to develop * reset keystone * reset to develop * ungoimport * move newChainIDSubForwarder into the test * fix typo * Move deathDeclarationDelay to config * Comments adjustments * fix merge issues * regen mocks * fix multinode flaky test * refactor SetTotalDifficultyIfGt to MaxTotalDifficulty * Use softer language in LatestFinalizedBlock comments Co-authored-by: Dimitris Grigoriou <[email protected]> * nits * Ensure HistoryDepth is >= FinalizedBlockOffset * regen mocks with newer version --------- Co-authored-by: Dimitris Grigoriou <[email protected]> Co-authored-by: Domino Valdano <[email protected]>
- Loading branch information