From 4e25ab0c369c1085a630c9468fdf82451aaa3351 Mon Sep 17 00:00:00 2001 From: yihuang Date: Mon, 6 Mar 2023 10:27:57 +0800 Subject: [PATCH] Problem: eth_call return value is unlimited (#907) * Problem: eth_call return value is unlimited Solution: - apply a configurable limit in rpc nodes * tag dependency --- CHANGELOG.md | 1 + go.mod | 2 +- go.sum | 4 ++-- gomod2nix.toml | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a0af65d15..7b60cb70be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Improvements - [#904](https://github.com/crypto-org-chain/cronos/pull/904) Enable "dynamic-level-bytes" on new `application.db`. +- [#907](https://github.com/crypto-org-chain/cronos/pull/907) Apply a configurable limit in rpc apis. *Feb 15, 2022* diff --git a/go.mod b/go.mod index 1b35f188cf..f4d44ff68a 100644 --- a/go.mod +++ b/go.mod @@ -198,7 +198,7 @@ replace ( github.com/cosmos/cosmos-sdk => github.com/cosmos/cosmos-sdk v0.46.10 github.com/crypto-org-chain/cronos/versiondb => ./versiondb github.com/ethereum/go-ethereum => github.com/crypto-org-chain/go-ethereum v1.10.19-deepcopy-jumptable - github.com/evmos/ethermint => github.com/crypto-org-chain/ethermint v0.20.6-cronos + github.com/evmos/ethermint => github.com/crypto-org-chain/ethermint v0.20.7-cronos // Fix upstream GHSA-h395-qcrw-5vmq vulnerability. // TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409 github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0 diff --git a/go.sum b/go.sum index bb7b911058..25921388d4 100644 --- a/go.sum +++ b/go.sum @@ -789,8 +789,8 @@ github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7Do github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/cristalhq/acmd v0.8.1/go.mod h1:LG5oa43pE/BbxtfMoImHCQN++0Su7dzipdgBjMCBVDQ= -github.com/crypto-org-chain/ethermint v0.20.6-cronos h1:zvnamngUnUfN1OfGkHY2R8C2RmQBBcbWoXB/ZzKhVPQ= -github.com/crypto-org-chain/ethermint v0.20.6-cronos/go.mod h1:q7CGi8HdGbVu/nfQTddr0sXiqE9spdP1QHNSKHATl9E= +github.com/crypto-org-chain/ethermint v0.20.7-cronos h1:t3p/eQsB94FweqqgfoH2ubcLPBav0iKv18gKIv582o4= +github.com/crypto-org-chain/ethermint v0.20.7-cronos/go.mod h1:q7CGi8HdGbVu/nfQTddr0sXiqE9spdP1QHNSKHATl9E= github.com/crypto-org-chain/go-ethereum v1.10.19-deepcopy-jumptable h1:VQLW0R8t9DcC/HvQZO1i0mIWjJfAezhI8lLUCholP0M= github.com/crypto-org-chain/go-ethereum v1.10.19-deepcopy-jumptable/go.mod h1:IJBNMtzKcNHPtllYihy6BL2IgK1u+32JriaTbdt4v+w= github.com/crypto-org-chain/go-ethereum-hdwallet v0.1.2 h1:Qu2GMavGHCcomdVWmZej76JpOO6uvII6IpPDdJUG+Qo= diff --git a/gomod2nix.toml b/gomod2nix.toml index 8f351ff30a..8410fc41be 100644 --- a/gomod2nix.toml +++ b/gomod2nix.toml @@ -166,8 +166,8 @@ schema = 3 hash = "sha256-QKuYnEXXrnHPPHk/Xc9ocez2Jheo/0IOOa1IQaMH61c=" replaced = "github.com/crypto-org-chain/go-ethereum" [mod."github.com/evmos/ethermint"] - version = "v0.20.6-cronos" - hash = "sha256-S9iLoLbmx1hBcbo2rqxIiSoodsKN+EOrSiFE2LIGPgs=" + version = "v0.20.7-cronos" + hash = "sha256-0p+g7J47X9ckLJ8bL6Uca1aksk8WYWNxVtrLMHlM5tg=" replaced = "github.com/crypto-org-chain/ethermint" [mod."github.com/felixge/httpsnoop"] version = "v1.0.2"