From 86e9edd3d12499d0ad6f20c0693f3462b8db9d83 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Sat, 27 Feb 2021 10:31:40 -0600 Subject: [PATCH] extend deadline --- pkg/eth/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/eth/api.go b/pkg/eth/api.go index 9d4efd02..9b462e3a 100644 --- a/pkg/eth/api.go +++ b/pkg/eth/api.go @@ -918,7 +918,7 @@ func (pea *PublicEthAPI) writeStateDiffAt(height int64) { return } // we use a separate context than the one provided by the client - ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 240*time.Second) defer cancel() var data json.RawMessage params := statediff.Params{ @@ -940,7 +940,7 @@ func (pea *PublicEthAPI) writeStateDiffFor(blockHash common.Hash) { return } // we use a separate context than the one provided by the client - ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 240*time.Second) defer cancel() var data json.RawMessage params := statediff.Params{