Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Candidate 2023.2.7 (dev -> main) #4487

Merged
merged 11 commits into from
Aug 12, 2023
Merged

Release Candidate 2023.2.7 (dev -> main) #4487

merged 11 commits into from
Aug 12, 2023

Conversation

sophoah
Copy link
Contributor

@sophoah sophoah commented Aug 8, 2023

Protocol changes :
#4467 - Improve staged stream sync, fix the devnet node stuck issue (still waiting to be merged)
#4474 - fix consensus catchup issue
#4483 - update deprecated go-libp2p packages
#4459 - Keep rotation meta in memory

Ops/Build changes:
#4482 - disable go test verbose flag
#4486 - Enable Mergify

GheisMohammadi and others added 2 commits August 11, 2023 11:26
* add error desc in validateNewBlock to help to identify validation issues

* let stream sync downloader continues loop even if error occured

* pass consensus to stream sync through downloader

* add last mile functions to stream sync

* add if to check invalid block revert

* add last mile stage to stream sync

* goimports

* improve stream sync downloader loop to block redundant calls

* move startSyncing out of the shortrange loop

* goimports

* fix sync loop go routine

* remove extra log

* add debug mode to stream sync help debugging syncing issues

* fix stream sync loop channels

* add streamFailed function to short range helper to avoid removing of the healthy streams

* remove execution of stage bodies, stage lastmile, stage short range and stage state for epoch chain

* refactor stage epoch

* add debug logs

* goimports

* add a few debug log to stage short range

* doSync returns estimated height as well

* only switch to short range if the current block number is very close to the chain current height

* stream sync gets UseMemDb from config file

* goimports

* only flag failed streams rather than removing them in stream sync

* if stage blocks progress behind current head, remove block cache

* add rollback to short range

* refactor stage last mile blocks, add roll back to this stage

* improve addConsensusLastMile

* goimports

* fix log spell error

* improve revert function, no need to revert if hashes are empty

* fix switch to short range by removing extra condition

* add donC chan size

* refactor downloader loop mechanism

* use atomic flag rather than done channel in downloader loop

* no need for fail stream in epoch sync

* ignore context timeout

* add mux lock to get access to last mile blocks

* remove atomic flag for downloader loop

* a few improvements on staged sync, check addedBn before switch to short range

* goimports

* fix consensus catchup issue

* fix panic issue from runnig sync loop while stream sync is runing

* goimports

* add two more logs to staged sync

* remove extra debug logs, add more file logs for stream sync

* add comment for DebugMode

* improve the byte comparison for getBlockFromLastMileBlocksByParentHash function
* Keep rotation meta in memory.

* Proper name for struct.

* Clean up.
@ONECasey ONECasey merged commit 1b9614b into main Aug 12, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants