-
Notifications
You must be signed in to change notification settings - Fork 146
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
chore(core/rawdb): use libevm core/rawdb #772
base: qdm12/core/types/block-libevm
Are you sure you want to change the base?
chore(core/rawdb): use libevm core/rawdb #772
Conversation
// DeletePruningDisabled deletes the marker indicating that the node has | ||
// run with pruning disabled. | ||
func DeletePruningDisabled(db ethdb.KeyValueStore) error { | ||
return db.Delete(pruningDisabledKey) | ||
} |
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.
This is unused in the entire codebase, should it be removed?
core/rawdb/accessors_chain_test.go
Outdated
@@ -276,17 +378,12 @@ func TestBlockReceiptStorage(t *testing.T) { | |||
receipts := []*types.Receipt{receipt1, receipt2} | |||
|
|||
// Check that no receipt entries are in a pristine database | |||
header := &types.Header{Number: big.NewInt(0), Extra: []byte("test header")} | |||
hash := header.Hash() | |||
hash := common.BytesToHash([]byte{0x03, 0x14}) |
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.
This is original geth code, testing less things - is this ok to remove the additional checks we had added? 🤔 I suppose worth it anyway, but I wanted to double check still.
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.
seems fine, if in doubt we can replicate the tests in an ext
package.
bea1090
to
269a49b
Compare
269a49b
to
d49dee5
Compare
- Add geth switch cases - Add geth ancient freezers checks - Add geth only elements of accounted meta - Keep geth-only stats entries removed
a12a415
to
f9ba5bf
Compare
Why this should be merged
ReadBlock
's use of extras andInspectDatabase
How this works
You might want to review the PR commit by commit.
InspectDatabase
: see ava-labs/libevm@c0f677cWithExtra
block hook in libevm to inject body extras in block - see ava-labs/libevm@aca197aHow this was tested
CI passing
Need to be documented?
No
Need to update RELEASES.md?
No