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

Patch/upgrade bsp #31

Merged
merged 12 commits into from
Mar 23, 2022
Merged

Patch/upgrade bsp #31

merged 12 commits into from
Mar 23, 2022

Conversation

noslav
Copy link
Member

@noslav noslav commented Mar 23, 2022

In order to run only against the most recent blocks aka live sync historical sync has to be avoided (Historical mode: 0, Live mode: 1..). Keeping this as a *uint32 to expand use cases in the future to other modes

  1. Set up a thread to monitor at start of node, to check if the historical synchronization is complete
  2. Atomically set the block replica config flag var for when the historical sync is finished using the handler interface Synced() fn
  3. Read the atomically set value to determine if the most recent blocks should be exported accordingly in block_replica.go
  4. Set the default values of replica config historical flag to 0 when starting a node so only the txs for recent blocks are sent (without overwhelming the proof-chain with txs that have been missed for earlier blocks)

@noslav noslav requested a review from sudeepdino008 March 23, 2022 22:00
eth/api_backend.go Outdated Show resolved Hide resolved
les/api_backend.go Outdated Show resolved Hide resolved
les/api_backend.go Outdated Show resolved Hide resolved
les/api_backend.go Outdated Show resolved Hide resolved
@noslav noslav merged commit e253b40 into main Mar 23, 2022
@noslav noslav deleted the patch/upgrade-bsp branch March 31, 2022 18:04
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.

2 participants