aboutsummaryrefslogtreecommitdiffstats
path: root/core/state_processor.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/state_processor.go')
-rw-r--r--core/state_processor.go17
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))
- }
- }
-}