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

State Store: Write XOR Hash per block range #84

Merged
merged 3 commits into from
Feb 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update store key
Kbhat1 committed Jan 31, 2025
commit 8df3fc8bd2bb0366c303741ee89478be13a99d8e
2 changes: 1 addition & 1 deletion ss/rocksdb/db.go
Original file line number Diff line number Diff line change
@@ -379,6 +379,6 @@ func (db *Database) RawImport(ch <-chan types.RawSnapshotNode) error {
}

// WriteBlockRangeHash writes a hash for a range of blocks to the database
func (db *Database) WriteBlockRangeHash(beginBlockRange, endBlockRange int64, hash []byte) error {
func (db *Database) WriteBlockRangeHash(storeKey string, beginBlockRange, endBlockRange int64, hash []byte) error {
panic("implement me")
}
2 changes: 1 addition & 1 deletion ss/sqlite/db.go
Original file line number Diff line number Diff line change
@@ -340,6 +340,6 @@ func (db *Database) RawImport(ch <-chan types.RawSnapshotNode) error {
}

// WriteBlockRangeHash writes a hash for a range of blocks to the database
func (db *Database) WriteBlockRangeHash(beginBlockRange, endBlockRange int64, hash []byte) error {
func (db *Database) WriteBlockRangeHash(storeKey string, beginBlockRange, endBlockRange int64, hash []byte) error {
panic("implement me")
}
2 changes: 1 addition & 1 deletion ss/types/store.go
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ type StateStore interface {
SetLatestMigratedKey(key []byte) error
GetLatestMigratedModule() (string, error)
SetLatestMigratedModule(module string) error
WriteBlockRangeHash(beginBlockRange, endBlockRange int64, hash []byte) error
WriteBlockRangeHash(storeKey string, beginBlockRange, endBlockRange int64, hash []byte) error

// ApplyChangeset Persist the change set of a block,
// the `changeSet` should be ordered by (storeKey, key),