What?
The account-chain stats widget raises a “JSON-RPC error -32000: count parameter is too big” exception when an account chain reaches a height bigger than 1024 blocks.
Why?
The AccountChainStatsBloc
calls the getAccountBlocksByHeight
api method, using the total account block count as count
argument. The count
argument has a maximum allowed value of 1024
as devined in the RpcMaxCountSize
variable.
The go-zenon rpc method has the following check.
How?
The account chain blocks must be retrieved in batches of 1024 blocks until all account blocks are retrieved.
Anything else?
No getAccountBlocksByHeight
rpc call will be made when an account chain has no account blocks.