Set state node diff field to false for snapshots #18

Merged
roysc merged 3 commits from snapshot-patch into main 2023-09-29 18:06:23 +00:00
Member
Needed for https://git.vdb.to/cerc-io/ipld-eth-state-snapshot/pulls/1
telackey was assigned by roysc 2023-09-28 10:06:16 +00:00
roysc added 1 commit 2023-09-28 10:06:17 +00:00
Set state node diff field to false for snapshots
Some checks reported warnings
Test / Run unit tests (pull_request) Successful in 16m11s
Test / Run compliance tests (pull_request) Successful in 3m51s
Test / Run integration tests (pull_request) Has been cancelled
b50e636204
roysc force-pushed snapshot-patch from b50e636204 to f0e7c74362 2023-09-28 11:38:24 +00:00 Compare
roysc requested review from i-norden 2023-09-28 14:36:47 +00:00
roysc requested review from telackey 2023-09-28 19:49:13 +00:00
telackey approved these changes 2023-09-28 22:28:46 +00:00
telackey left a comment
Member

Other than adding a comment, LGTM.

Other than adding a comment, LGTM.
@ -38,6 +38,7 @@ func NewStateDiffIndexer(
chainConfig *params.ChainConfig,
nodeInfo node.Info,
config interfaces.Config,
diff bool,
Member

Could you add a comment as to the purpose of the flag?

Could you add a comment as to the purpose of the flag?
roysc marked this conversation as resolved
@ -64,3 +64,3 @@
// NewStateDiffIndexer creates a void implementation of interfaces.StateDiffIndexer
func NewStateDiffIndexer(chainConfig *params.ChainConfig, config Config, nodeInfo node.Info) (*StateDiffIndexer, error) {
func NewStateDiffIndexer(chainConfig *params.ChainConfig, config Config, nodeInfo node.Info, diff bool) (*StateDiffIndexer, error) {
Member

Same as above.

Same as above.
roysc marked this conversation as resolved
@ -57,3 +58,3 @@
// NewSQLWriter creates a new pointer to a Writer
func NewSQLWriter(wc io.WriteCloser, watchedAddressesFilePath string) *SQLWriter {
func NewSQLWriter(wc io.WriteCloser, watchedAddressesFilePath string, diff bool) *SQLWriter {
Member

Same.

Same.
roysc marked this conversation as resolved
@ -53,2 +53,3 @@
// NewStateDiffIndexer creates a sql implementation of interfaces.StateDiffIndexer
func NewStateDiffIndexer(ctx context.Context, chainConfig *params.ChainConfig, db Database) (*StateDiffIndexer, error) {
func NewStateDiffIndexer(
ctx context.Context, chainConfig *params.ChainConfig, db Database, diff bool,
Member

Same.

Same.
roysc marked this conversation as resolved
roysc added 1 commit 2023-09-29 12:50:32 +00:00
Godoc for indexer constructor
All checks were successful
Test / Run unit tests (pull_request) Successful in 16m38s
Test / Run compliance tests (pull_request) Successful in 3m49s
Test / Run integration tests (pull_request) Successful in 31m21s
d80e2104de
roysc added 1 commit 2023-09-29 13:00:27 +00:00
Godoc for indexer constructor
All checks were successful
Test / Run unit tests (pull_request) Successful in 16m52s
Test / Run compliance tests (pull_request) Successful in 3m23s
Test / Run integration tests (pull_request) Successful in 28m54s
0b2be15cf9
roysc merged commit e70c55bf86 into main 2023-09-29 18:06:23 +00:00
roysc deleted branch snapshot-patch 2023-09-29 18:06:24 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/plugeth-statediff#18
No description provided.