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

feat(beacon): introduce soft blocks #342

Open
wants to merge 33 commits into
base: taiko
Choose a base branch
from
Open

feat(beacon): introduce soft blocks #342

wants to merge 33 commits into from

Conversation

davidtaikocha
Copy link
Member

No description provided.

eth/catalyst/api.go Outdated Show resolved Hide resolved
Co-authored-by: maskpp <maskpp266@gmail.com>
@davidtaikocha davidtaikocha marked this pull request as ready for review November 5, 2024 07:31
@@ -33,3 +33,6 @@ var HeklaGenesisAllocJSON []byte

//go:embed mainnet.json
var MainnetGenesisAllocJSON []byte

//go:embed preconf_devnet.json
Copy link
Member Author

Choose a reason for hiding this comment

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

@cyberhorsey not sure which taiko-mono branch I should use for generating the genesis JSON, so I copied the internal devnet genesis JSON here temporarily

Co-authored-by: maskpp <maskpp266@gmail.com>
eth/catalyst/api.go Outdated Show resolved Hide resolved
Co-authored-by: maskpp <maskpp266@gmail.com>
miner/worker.go Outdated Show resolved Hide resolved
mask-pp and others added 7 commits November 17, 2024 11:39
* use debug log level to avoid logging too many logs when frequently soft block reorg.

* use debug log level to avoid logging too many logs when frequently soft block reorg.

* feat: check --taiko flag

---------

Co-authored-by: David <david@taiko.xyz>
* remove the reverted l1Origins

* feat: add more comments

---------

Co-authored-by: David <david@taiko.xyz>
@@ -52,16 +69,40 @@ func WriteL1Origin(db ethdb.KeyValueWriter, blockID *big.Int, l1Origin *L1Origin
}
}

// ReadL1Origin retrieves the given L2 block's L1Origin from database.
// DeleteL1Origin removes the L1Origin.
func DeleteL1Origin(db ethdb.KeyValueWriter, blockID *big.Int) {

Choose a reason for hiding this comment

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

What happened when delete the head l1origin?

Choose a reason for hiding this comment

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

We inserted the newest l1origin id by WriteHeadL1Origin, but it will reach the null pointer after deleting the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants