@@ -20,7 +20,6 @@ package graphql
2020import (
2121 "context"
2222 "errors"
23- "time"
2423
2524 "github.com/ethereum/go-ethereum"
2625 "github.com/ethereum/go-ethereum/common"
@@ -832,7 +831,9 @@ func (b *Block) Call(ctx context.Context, args struct {
832831 return nil , err
833832 }
834833 }
835- result , gas , failed , err := ethapi .DoCall (ctx , b .backend , args .Data , * b .numberOrHash , nil , vm.Config {}, 5 * time .Second , b .backend .RPCGasCap ())
834+
835+ // Quorum - replaced the default 5s time out with the value passed in vm.calltimeout
836+ result , gas , failed , err := ethapi .DoCall (ctx , b .backend , args .Data , * b .numberOrHash , nil , vm.Config {}, b .backend .CallTimeOut (), b .backend .RPCGasCap ())
836837 status := hexutil .Uint64 (1 )
837838 if failed {
838839 status = 0
@@ -898,7 +899,9 @@ func (p *Pending) Call(ctx context.Context, args struct {
898899 Data ethapi.CallArgs
899900}) (* CallResult , error ) {
900901 pendingBlockNr := rpc .BlockNumberOrHashWithNumber (rpc .PendingBlockNumber )
901- result , gas , failed , err := ethapi .DoCall (ctx , p .backend , args .Data , pendingBlockNr , nil , vm.Config {}, 5 * time .Second , p .backend .RPCGasCap ())
902+
903+ // Quorum - replaced the default 5s time out with the value passed in vm.calltimeout
904+ result , gas , failed , err := ethapi .DoCall (ctx , p .backend , args .Data , pendingBlockNr , nil , vm.Config {}, p .backend .CallTimeOut (), p .backend .RPCGasCap ())
902905 status := hexutil .Uint64 (1 )
903906 if failed {
904907 status = 0
0 commit comments