From cdd3745d9beb83941e7142c18765ee948bfeb066 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Wed, 5 Jun 2024 16:36:28 +0200 Subject: [PATCH] rhpv2: increase timeout when writing merkle proof --- rhp/v2/rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhp/v2/rpc.go b/rhp/v2/rpc.go index 2cfcb55f..d46bd35c 100644 --- a/rhp/v2/rpc.go +++ b/rhp/v2/rpc.go @@ -677,7 +677,7 @@ func (sh *SessionHandler) rpcWrite(s *session, log *zap.Logger) (contracts.Usage if req.MerkleProof { writeResp.OldSubtreeHashes, writeResp.OldLeafHashes = rhp2.BuildDiffProof(req.Actions, oldRoots) } - if err := s.writeResponse(writeResp, time.Minute); err != nil { + if err := s.writeResponse(writeResp, 5*time.Minute); err != nil { return contracts.Usage{}, fmt.Errorf("failed to write merkle proof: %w", err) }