forked from erigontech/erigon
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stage_baches): rpc resequence stop stage on unwind (#1297)
* fix(stage_baches): rpc resequence stop stage on unwind * fix: tests * fix: datastream channel write blocking * fix: datastream blocking test * fix: add wait on the datastream connect loop * fix: merge problems * fix: blockhash comparison in stage batches processor * fix: download entries till reaching the amount in header * fix: add go sum package * feat: internal reconnect on each method in datastream client * fix: do not disconnect on stage batches end * feat: add ctx close in datastream reconnections * fix: send stop command after normal stop of reading * feat: retry a fixed number of times in stage batches * fix: return error on ctx done * fix: reverse daastream server version * feat: print ds found block * feat: added more logs in stage batches * fix: check for sync limit in stage batches * fix: sync limit in stage batches * refactor: make unwind test erros a bit more readable * refactor: make unwind tests erorrs more readable * refactor(ds_client): wrap connection read and write to set timeout * fix: add timeout to test clients * fix: stage batches limit * feat: up datastream server version * fix: up datastream server version * fix: go sum * fix: add error handling for set timeouts in datastream client * fix: handle zero checkTImeout value * fix: remove flag setting for datastream timeout * fix: ci config * fix: resequence test timeout * fix: remove timeout from pre-london ci config * refactor: error handling * fix: stop stage on unwind * fix: missing id in client * fix: tests * fix: tests * fix: finish processing blocks on last entry reached * feat: send stop command at start of new cycle to not get timedout by server * fix: remove accidental commit folder * fix: remove unneeded commit * fix: tests * fix: remove unnneeded return * fix: get correct parent block hash * fix: read correct blockhash * fix: unwind on ds block unwind * refactor: error handling in datastream and stage batches * fix: remove unneeded sleep * fix: add a small sleep interval in the entry loop * fix: stop streaming on querying new stuff from ds client * fix: buffer clear before new reads * fix: sleep more in resequence test * fix: cast call * fix: remove wrong flag on cast * fix: cast json flags in test * feat: added wait time for block to be available on sync node * fix: resequence block check test * Fix 'client already started' error on finding common ancestor * Add timeout --------- Co-authored-by: Scott Fairclough <70711990+hexoscott@users.noreply.github.com> Co-authored-by: Jerry <jerrycgh@gmail.com>
- Loading branch information
1 parent
050949a
commit 6e8775f
Showing
19 changed files
with
815 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.