From f0f33f1519a8a85fc8d690757cdc866de9ac5938 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Tue, 11 Jan 2022 14:41:18 +0700 Subject: [PATCH] increase body download timeout (#3217) --- eth/backend.go | 2 +- eth/ethconfig/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/backend.go b/eth/backend.go index ed8a7ffb9..5020bc504 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -348,7 +348,7 @@ func New(stack *node.Node, config *ethconfig.Config, logger log.Logger) (*Ethere if err != nil { return nil, err } - config.BodyDownloadTimeoutSeconds = 30 + config.BodyDownloadTimeoutSeconds = 60 var txPoolRPC txpool_proto.TxpoolServer var miningRPC txpool_proto.MiningServer diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go index 0ba1b7b49..825e19335 100644 --- a/eth/ethconfig/config.go +++ b/eth/ethconfig/config.go @@ -87,7 +87,7 @@ var Defaults = Config{ GPO: FullNodeGPO, RPCTxFeeCap: 1, // 1 ether - BodyDownloadTimeoutSeconds: 30, + BodyDownloadTimeoutSeconds: 60, } func init() {