diff options
author | gary rong <garyrong0905@gmail.com> | 2018-07-24 22:22:03 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-07-24 22:22:03 +0800 |
commit | cab1cff11cbcd4ff60f1a149deb71ec87413b487 (patch) | |
tree | 2e7c89b0a541a03e23294d4b444892a9420cbc9c /params | |
parent | 2909f6d7a2ceb5b1cdeb4cc3966531018a0b8334 (diff) | |
download | dexon-cab1cff11cbcd4ff60f1a149deb71ec87413b487.tar dexon-cab1cff11cbcd4ff60f1a149deb71ec87413b487.tar.gz dexon-cab1cff11cbcd4ff60f1a149deb71ec87413b487.tar.bz2 dexon-cab1cff11cbcd4ff60f1a149deb71ec87413b487.tar.lz dexon-cab1cff11cbcd4ff60f1a149deb71ec87413b487.tar.xz dexon-cab1cff11cbcd4ff60f1a149deb71ec87413b487.tar.zst dexon-cab1cff11cbcd4ff60f1a149deb71ec87413b487.zip |
core, crypto, params: implement CREATE2 evm instrction (#17196)
* core, crypto, params: implement CREATE2 evm instrction
* core/vm: add opcode to string mapping
* core: remove past fork checking
* core, crypto: use option2 to generate new address
Diffstat (limited to 'params')
-rw-r--r-- | params/protocol_params.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/params/protocol_params.go b/params/protocol_params.go index 1ea9c5813..46624ac9a 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -57,6 +57,7 @@ const ( TierStepGas uint64 = 0 // Once per operation, for a selection of them. LogTopicGas uint64 = 375 // Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas. CreateGas uint64 = 32000 // Once per CREATE operation & contract-creation transaction. + Create2Gas uint64 = 32000 // Once per CREATE2 operation SuicideRefundGas uint64 = 24000 // Refunded following a suicide operation. 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. |