diff --git a/cmd/scanner/main.go b/cmd/scanner/main.go index 2b8a26c6..4b12a726 100644 --- a/cmd/scanner/main.go +++ b/cmd/scanner/main.go @@ -102,7 +102,7 @@ func initTxStream(ctx context.Context, ethClient, traceClient ethereum.Client, c }) // subscribe to block feed to construct a timeline and estimate performance - blockTimeline := timeline.NewBlockTimeline(10, cfg.ChainID) + blockTimeline := timeline.NewBlockTimeline(cfg.ChainID, 5) blockFeed.Subscribe(blockTimeline.HandleBlock) estimator := estimation.NewEstimator(blockTimeline) diff --git a/go.mod b/go.mod index 758c3330..05fe0b09 100644 --- a/go.mod +++ b/go.mod @@ -41,7 +41,7 @@ replace github.com/docker/docker => github.com/moby/moby v20.10.25+incompatible require ( github.com/docker/docker v1.6.2 github.com/docker/go-connections v0.4.0 - github.com/forta-network/forta-core-go v0.0.0-20231021103118-77776915d2de + github.com/forta-network/forta-core-go v0.0.0-20231025171710-31168711357f github.com/prometheus/client_golang v1.14.0 github.com/prometheus/client_model v0.3.0 github.com/prometheus/common v0.39.0 diff --git a/go.sum b/go.sum index 984b30bc..a6dff76a 100644 --- a/go.sum +++ b/go.sum @@ -329,8 +329,8 @@ github.com/flynn/noise v0.0.0-20180327030543-2492fe189ae6/go.mod h1:1i71OnUq3iUe github.com/flynn/noise v1.0.0 h1:DlTHqmzmvcEiKj+4RYo/imoswx/4r6iBlCMfVtrMXpQ= github.com/flynn/noise v1.0.0/go.mod h1:xbMo+0i6+IGbYdJhF31t2eR1BIU0CYc12+BNAKwUTag= github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= -github.com/forta-network/forta-core-go v0.0.0-20231021103118-77776915d2de h1:1tcQwQdZT4FpttrzHlujMB+RELgPMjzGyVTSm6H5VYY= -github.com/forta-network/forta-core-go v0.0.0-20231021103118-77776915d2de/go.mod h1:F4O7Yxhs0WSB9iFLiCVSYMPI1wOKuLMZIk8dbVg+J/Y= +github.com/forta-network/forta-core-go v0.0.0-20231025171710-31168711357f h1:F/aKPjIAAijk7pakzSkkBrKg5tUTkhBSZLrzTNc5I20= +github.com/forta-network/forta-core-go v0.0.0-20231025171710-31168711357f/go.mod h1:F4O7Yxhs0WSB9iFLiCVSYMPI1wOKuLMZIk8dbVg+J/Y= github.com/forta-network/go-multicall v0.0.0-20230609185354-1436386c6707 h1:f6I7K43i2m6AwHSsDxh0Mf3qFzYt8BKnabSl/zGFmh0= github.com/forta-network/go-multicall v0.0.0-20230609185354-1436386c6707/go.mod h1:nqTUF1REklpWLZ/M5HfzqhSHNz4dPVKzJvbLziqTZpw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g=