File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -287,6 +287,12 @@ func (b *Bootstrap) StartAPIServer(ctx context.Context) error {
287287 nonceProvider ,
288288 )
289289 } else if b .config .TxBatchMode {
290+ nonceProvider := requester .NewLocalNonceProvider (
291+ b .config .FlowNetworkID ,
292+ b .storages .Registers ,
293+ b .storages .Blocks ,
294+ b .collector ,
295+ )
290296 txPool , err = requester .NewBatchTxPool (
291297 ctx ,
292298 b .client ,
@@ -295,6 +301,7 @@ func (b *Bootstrap) StartAPIServer(ctx context.Context) error {
295301 b .config ,
296302 b .collector ,
297303 b .keystore ,
304+ nonceProvider ,
298305 )
299306 } else {
300307 txPool , err = requester .NewSingleTxPool (
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ require (
77 github.com/ethereum/go-ethereum v1.17.4
88 github.com/goccy/go-json v0.10.4
99 github.com/hashicorp/go-multierror v1.1.1
10- github.com/hashicorp/golang-lru/v2 v2.0.7
1110 github.com/holiman/uint256 v1.3.2
1211 github.com/onflow/atree v0.16.1
1312 github.com/onflow/cadence v1.10.5
@@ -98,6 +97,7 @@ require (
9897 github.com/gorilla/websocket v1.5.3 // indirect
9998 github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 // indirect
10099 github.com/hashicorp/errwrap v1.1.0 // indirect
100+ github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
101101 github.com/hashicorp/hcl v1.0.0 // indirect
102102 github.com/holiman/bloomfilter/v2 v2.0.3 // indirect
103103 github.com/huandu/go-clone v1.6.0 // indirect
You can’t perform that action at this time.
0 commit comments