diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-07-14 16:22:58 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-07-15 21:52:55 +0800 |
commit | 2c2e389b778b490fcaf14d9cc45a750647ca5c68 (patch) | |
tree | 0534f50f26ce5f62b1acaf0c18667b6cc0998103 /core/state_processor.go | |
parent | 3291235711082759cd7b70253c02150a80d57011 (diff) | |
download | dexon-2c2e389b778b490fcaf14d9cc45a750647ca5c68.tar dexon-2c2e389b778b490fcaf14d9cc45a750647ca5c68.tar.gz dexon-2c2e389b778b490fcaf14d9cc45a750647ca5c68.tar.bz2 dexon-2c2e389b778b490fcaf14d9cc45a750647ca5c68.tar.lz dexon-2c2e389b778b490fcaf14d9cc45a750647ca5c68.tar.xz dexon-2c2e389b778b490fcaf14d9cc45a750647ca5c68.tar.zst dexon-2c2e389b778b490fcaf14d9cc45a750647ca5c68.zip |
cmd, core, eth, miner, params, tests: finalize the DAO fork
Diffstat (limited to 'core/state_processor.go')
-rw-r--r-- | core/state_processor.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/core/state_processor.go b/core/state_processor.go index 6a418a62d..fd8e9762e 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -25,7 +25,6 @@ import ( "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/logger" "github.com/ethereum/go-ethereum/logger/glog" - "github.com/ethereum/go-ethereum/params" ) var ( @@ -134,19 +133,3 @@ func AccumulateRewards(statedb *state.StateDB, header *types.Header, uncles []*t } statedb.AddBalance(header.Coinbase, reward) } - -// ApplyDAOHardFork modifies the state database according to the DAO hard-fork -// rules, transferring all balances of a set of DAO accounts to a single refund -// contract. -func ApplyDAOHardFork(statedb *state.StateDB) { - // Retrieve the contract to refund balances into - refund := statedb.GetOrNewStateObject(params.DAORefundContract) - - // Move every DAO account and extra-balance account funds into the refund contract - for _, addr := range params.DAODrainList { - if account := statedb.GetStateObject(addr); account != nil { - refund.AddBalance(account.Balance()) - account.SetBalance(new(big.Int)) - } - } -} |