diff options
author | dm4 <dm4@skymizer.com> | 2019-03-28 02:15:59 +0800 |
---|---|---|
committer | hydai <hydai@skymizer.com> | 2019-04-11 18:16:55 +0800 |
commit | e6d819eeb106139a3c53f550af2ade5512639da0 (patch) | |
tree | 5916a64faf15833e6296a7dd82c59a22180f5a76 | |
parent | dcba2159eb65d0f08b5643c401b9f8d62eb31e67 (diff) | |
download | dexon-e6d819eeb106139a3c53f550af2ade5512639da0.tar.gz dexon-e6d819eeb106139a3c53f550af2ade5512639da0.tar.zst dexon-e6d819eeb106139a3c53f550af2ade5512639da0.zip |
params: grow max code size to 2MB.
Currently our WASM bytecode exceed 1MB, so we need to grow MaxCodeSize
to 2MB (2000000).
-rw-r--r-- | params/protocol_params.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |