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

Bids 2530/missing block0 #2684

Merged
merged 46 commits into from
Nov 24, 2023
Merged

Bids 2530/missing block0 #2684

merged 46 commits into from
Nov 24, 2023

Conversation

D13ce
Copy link
Contributor

@D13ce D13ce commented Nov 9, 2023

This PR enables the explorer to show block 0 properly. It should work for both scenarios:

  • Networks that launch as PoW
  • Networks that launch as PoS (currently only Holesky or local testnets)

This includes showing block 0 on the blocks page.

Both indexMissingBlocks and IndexOldEth1Blocks now work for block 0 and when called for a single block. Both GetFullBlocksDescending and GetBlocksDescending have also been made more error proof.

Functions in the misc tool now are also not exported anymore.

Furthermore, it includes smaller bugfixes of bugs that were found while I was working on this:

  • Searching for block 0 now works
  • Searching for slots 0 to 9 now works

D13ce added 27 commits October 25, 2023 13:34
handlers/slots.go Outdated Show resolved Hide resolved
handlers/slot.go Outdated Show resolved Hide resolved
handlers/slot.go Show resolved Hide resolved
handlers/eth1Transactions.go Show resolved Hide resolved
handlers/eth1Block.go Outdated Show resolved Hide resolved
db/bigtable_eth1.go Outdated Show resolved Hide resolved
db/bigtable_eth1.go Outdated Show resolved Hide resolved
db/bigtable_eth1.go Outdated Show resolved Hide resolved
cmd/misc/main.go Show resolved Hide resolved
cmd/misc/main.go Show resolved Hide resolved
@D13ce
Copy link
Contributor Author

D13ce commented Nov 21, 2023

Alright, @LuccaBitfly, I believe I have addressed everything. Many thanks for the in-depth review, you've provided valuable feedback 👍

db/bigtable_eth1.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@LuccaBitfly LuccaBitfly left a comment

Choose a reason for hiding this comment

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

lgtm

@D13ce D13ce merged commit 91b2b05 into master Nov 24, 2023
3 checks passed
@D13ce D13ce deleted the BIDS-2530/MissingBlock0 branch November 24, 2023 07:59
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