-
Notifications
You must be signed in to change notification settings - Fork 147
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
base: taiko
Are you sure you want to change the base?
Conversation
Co-authored-by: maskpp <maskpp266@gmail.com>
@@ -33,3 +33,6 @@ var HeklaGenesisAllocJSON []byte | |||
|
|||
//go:embed mainnet.json | |||
var MainnetGenesisAllocJSON []byte | |||
|
|||
//go:embed preconf_devnet.json |
There was a problem hiding this comment.
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>
Co-authored-by: maskpp <maskpp266@gmail.com>
…to make `IsSoftblock` return `false`
* 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) { |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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.
No description provided.