Skip to content

core/fitermaps: fix final block logic#3300

Merged
buddh0 merged 1 commit intobnb-chain:developfrom
allformless:fix-finalBlock-filtermaps
Aug 21, 2025
Merged

core/fitermaps: fix final block logic#3300
buddh0 merged 1 commit intobnb-chain:developfrom
allformless:fix-finalBlock-filtermaps

Conversation

@allformless
Copy link
Contributor

Description

core/fitermaps: fix final block logic

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

var finalBlock uint64
var finalBlock, currentBlock int64
if fb := s.blockchain.CurrentFinalBlock(); fb != nil {
finalBlock = fb.Number.Uint64()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

when sync with chapel or bsc mainnet
before luban hardfork, finalBlock will always be 0, will prevent filtermaps indexing

@buddh0 buddh0 merged commit 2c47ebf into bnb-chain:develop Aug 21, 2025
6 of 7 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.

4 participants