From f8c06e92f7ea5d30074274580119d72ac35af5ee Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Tue, 3 Mar 2015 13:10:31 +0100 Subject: [PATCH] Alter Genesis block. Add FeeStructure. --- feeStructure.json | 38 +++++++++++++++++++++++++++++++++++++ libethereum/GenesisInfo.cpp | 4 ++++ 2 files changed, 42 insertions(+) create mode 100644 feeStructure.json diff --git a/feeStructure.json b/feeStructure.json new file mode 100644 index 000000000..f09464a5a --- /dev/null +++ b/feeStructure.json @@ -0,0 +1,38 @@ +{ + "tierStepGas": [ 0, 2, 3, 5, 8, 10, 20 ], + "expGas": 10, + "expByteGas": 10, + + "sha3Gas": 30, + "sha3WordGas": 6, + + "sloadGas": 50, + "sstoreSetGas": 20000, + "sstoreResetGas": 5000, + "sstoreClearGas": 5000, + "sstoreRefundGas": 15000, + "jumpdestGas": 1, + + "logGas": 375, + "logDataGas": 8, + "logTopicGas": 375, + + "createGas": 32000, + + "callGas": 40, + "callStipend": 2300, + "callValueTransferGas": 9000, + "callNewAccountGas": 25000, + + "suicideRefundGas": 24000, + + "memoryGas": 3, + "quadCoeffDiv": 512, + + "createDataGas": 200, + "txGas": 21000, + "txDataZeroGas": 4, + "txDataNonZeroGas": 68, + + "copyGas": 3, +} diff --git a/libethereum/GenesisInfo.cpp b/libethereum/GenesisInfo.cpp index b9b45d4b4..d7224b7cc 100644 --- a/libethereum/GenesisInfo.cpp +++ b/libethereum/GenesisInfo.cpp @@ -24,6 +24,10 @@ std::string const dev::eth::c_genesisInfo = R"ETHEREUM( { + "0000000000000000000000000000000000000001": { "wei": "1" }, + "0000000000000000000000000000000000000002": { "wei": "1" }, + "0000000000000000000000000000000000000003": { "wei": "1" }, + "0000000000000000000000000000000000000004": { "wei": "1" }, "dbdbdb2cbd23b783741e8d7fcf51e459b497e4a6": { "wei": "1606938044258990275541962092341162602522202993782792835301376" }, "e6716f9544a56c530d868e4bfbacb172315bdead": { "wei": "1606938044258990275541962092341162602522202993782792835301376" }, "b9c015918bdaba24b4ff057a92a3873d6eb201be": { "wei": "1606938044258990275541962092341162602522202993782792835301376" },