From e6d819eeb106139a3c53f550af2ade5512639da0 Mon Sep 17 00:00:00 2001 From: dm4 Date: Thu, 28 Mar 2019 02:15:59 +0800 Subject: params: grow max code size to 2MB. Currently our WASM bytecode exceed 1MB, so we need to grow MaxCodeSize to 2MB (2000000). --- params/protocol_params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/params/protocol_params.go b/params/protocol_params.go index 6b1787922..fb32c2280 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -70,7 +70,7 @@ const ( MemoryGas uint64 = 3 // Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL. TxDataNonZeroGas uint64 = 68 // Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions. - MaxCodeSize = 24576 // Maximum bytecode to permit for a contract + MaxCodeSize = 2000000 // Maximum bytecode to permit for a contract // Precompiled contract gas prices -- cgit v1.2.3