feature: Step by step sync#116
Conversation
| } | ||
| defer tx.Rollback() | ||
| } | ||
| if initialCycle { |
There was a problem hiding this comment.
initialCycle == true, only for the first time?
There was a problem hiding this comment.
Yes, only for the first time, then will always be false afterwards
There was a problem hiding this comment.
Look through the issue please and PR
This is crucial for lagging networks like BSC. You can find more at erigon's discord - https://discord.com/channels/687972960811745322/983710293156851763/1108134331882410045
There was a problem hiding this comment.
@alexqrid pls create an issue to track your issue. Your reply is irrelevant to this PR.
| blocksToTTD = x.Uint64() | ||
| } | ||
| } | ||
| if hd.stageSyncStep > 0 && hd.highestInDb%hd.stageSyncStep == 0 { |
There was a problem hiding this comment.
why put it here, could be the same place as stageSyncUpperBound
There was a problem hiding this comment.
If put as the same place above, then it was check before insert, then the blockHeight whose mod stageSyncStep ==0 will never be inserted into db, so put here, insert before check.
add log add log fix bug? fix bug? update fix bug? fix bug? fix bug? add log add log add log add log add log add log fix fix add log add log fix bug remove log fix bug? add log fix bug fix bug add trace block diff by number rlp encode to json marshal update update storage key change to hex to test revert update feature: Step by step sync (node-real#116) Missed RPC calls implemented in BSC geth (node-real#83) * Add rpc calls that implemented in BSC geth but not in erigon * Register 'bsc' API module under 'eth' API namespace * Several missed calls implementation Fix bugs in trie hash computation solve the mismatch validator bug with final solution (node-real#135) update the version for bsc-erigon (node-real#136) Port Herzt upgrade: London & Berlin (node-real#138) optimization (node-real#131) release: prepare for release v1.1.2 (node-real#142) fix: log info System contract upgrade fix and RPC refine (node-real#146) * e2: avoid do RestoreCodeHash twice (erigontech#7706) - do it only once in HistoryStateReader * fix system contract upgrade * update --------- Co-authored-by: Alex Sharov <AskAlexSharov@gmail.com> update the config update the version remove log remove log remove log update diff layer return update update update update new try new try update update
Update the way to sync step by step, which can support both step-by-step sync and sync upper-bound set