From 3ed5f098f022ce8fe7d3172fb5fbfb08a515dada Mon Sep 17 00:00:00 2001 From: "Sangyeop.lee" Date: Tue, 27 Apr 2021 11:56:10 +0900 Subject: [PATCH] chore: increase the value of maxPerPage --- rpc/core/env.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpc/core/env.go b/rpc/core/env.go index 42a6fd65f..6016c4fba 100644 --- a/rpc/core/env.go +++ b/rpc/core/env.go @@ -19,7 +19,10 @@ import ( const ( // see README defaultPerPage = 30 - maxPerPage = 100 + + // Temporarily set it to a sufficient value to reduce the number of tx search queries during the test. + // TODO It will be modified later to be configurable. (Also, add a option to get all tx of block) + maxPerPage = 10000 // SubscribeTimeout is the maximum time we wait to subscribe for an event. // must be less than the server's write timeout (see rpcserver.DefaultConfig)