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

Big merge v1.10.16 v1.12.2 fix ci #1850

Merged

Conversation

NathanBSC
Copy link
Contributor

@NathanBSC NathanBSC commented Sep 4, 2023

Description

fix unit test cases which failed upon big merge

Rationale

Improve code correctness by fixing UT

Example

  1. make test pass
  2. can work as miner using node-deploy(branch adapt_for_big_merge)
  3. full sync mainnet works ( sync 1M blocks)

Changes

UT

  1. add unit test dir internal and `ethstats
  2. fix all UT cases (except dir tests)

Bug Fix:

  1. statedb related
    a. fix hasher race in statedb
    b. fix using wrong value in closures
    c. fix face in map iteration and map write
    d. reset snap after commit
    e. disable pipeCommit
    f. do not copy nil accessList
  2. fix ApplyTransaction missing param NewReceiptBloomGenerator
  3. fix forgetting to decHandlers when runBscExtension

Remove Useless

  1. remove diffsync
  2. remove useless skipCheckFreezerType param

Others

  1. add omitempty tag for unused new fields of core.Genesis
  2. revert interface Finalize of consensus
  3. use Leveldb as default

brilliant-lx and others added 30 commits August 25, 2023 16:13
2. fix race use of hasher in statedb
3. fix use wrong value when updateTrie
TestCheckpointChallenge was removed in:
ethereum/go-ethereum#27147
since after merge, it is useless for ethereum, but might be useful for BSC.
disable the case right now, as it is not a big issue.
2. all test cases in core work well now
	cd core && go test ./... -v
Copy link
Collaborator

@brilliant-lx brilliant-lx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@brilliant-lx brilliant-lx merged commit 202ab70 into big_merge_v1.10.16_v1.12.2 Sep 7, 2023
@buddh0 buddh0 deleted the big_merge_v1.10.16_v1.12.2_fixCI branch September 14, 2023 03: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