DAO Rescue soft fork (#1309)

* DAO Rescue soft fork

* Address minor issues.

* Fix tests.
This commit is contained in:
Gav Wood
2016-06-17 22:15:18 +02:00
committed by GitHub
parent 2a101baf1d
commit 16412eb0c9
5 changed files with 29 additions and 1 deletions

View File

@@ -101,7 +101,10 @@ impl Engine for Ethash {
if env_info.number < self.ethash_params.frontier_compatibility_mode_limit {
Schedule::new_frontier()
} else {
Schedule::new_homestead()
let mut s = Schedule::new_homestead();
// TODO: make dependent on gaslimit > 4000000 of block 1760000.
s.block_dao_transactions = env_info.number >= 1760000;
s
}
}