diff
snapshot-patch
main
Needed for cerc-io/ipld-eth-state-snapshot#1
b50e636204
f0e7c74362
Other than adding a comment, LGTM.
@@ -38,6 +38,7 @@ func NewStateDiffIndexer(
chainConfig *params.ChainConfig,
nodeInfo node.Info,
config interfaces.Config,
diff bool,
Could you add a comment as to the purpose of the flag?
@@ -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) {
Same as above.
@@ -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 {
Same.
@@ -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,
No dependencies set.
The note is not visible to the blocked user.
Needed for cerc-io/ipld-eth-state-snapshot#1
difffield to false for snapshotsb50e636204tof0e7c74362Other than adding a comment, LGTM.
@@ -38,6 +38,7 @@ func NewStateDiffIndexer(chainConfig *params.ChainConfig,nodeInfo node.Info,config interfaces.Config,diff bool,Could you add a comment as to the purpose of the flag?
@@ -64,3 +64,3 @@// NewStateDiffIndexer creates a void implementation of interfaces.StateDiffIndexerfunc 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) {Same as above.
@@ -57,3 +58,3 @@// NewSQLWriter creates a new pointer to a Writerfunc NewSQLWriter(wc io.WriteCloser, watchedAddressesFilePath string) *SQLWriter {func NewSQLWriter(wc io.WriteCloser, watchedAddressesFilePath string, diff bool) *SQLWriter {Same.
@@ -53,2 +53,3 @@// NewStateDiffIndexer creates a sql implementation of interfaces.StateDiffIndexerfunc NewStateDiffIndexer(ctx context.Context, chainConfig *params.ChainConfig, db Database) (*StateDiffIndexer, error) {func NewStateDiffIndexer(ctx context.Context, chainConfig *params.ChainConfig, db Database, diff bool,Same.