diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-01-20 06:50:00 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2016-02-18 17:11:48 +0800 |
commit | b6d88a0e9f9aaeb47d585d79c768d457b545af90 (patch) | |
tree | 49e667cd929ce6b561961ac741d9ff0f82e61261 /core/database_util.go | |
parent | 4f4d2b647488eaa056613fa6f026229ac91f066a (diff) | |
download | dexon-b6d88a0e9f9aaeb47d585d79c768d457b545af90.tar dexon-b6d88a0e9f9aaeb47d585d79c768d457b545af90.tar.gz dexon-b6d88a0e9f9aaeb47d585d79c768d457b545af90.tar.bz2 dexon-b6d88a0e9f9aaeb47d585d79c768d457b545af90.tar.lz dexon-b6d88a0e9f9aaeb47d585d79c768d457b545af90.tar.xz dexon-b6d88a0e9f9aaeb47d585d79c768d457b545af90.tar.zst dexon-b6d88a0e9f9aaeb47d585d79c768d457b545af90.zip |
core, core/vm, crypto: fixes for homestead
* Removed some strange code that didn't apply state reverting properly
* Refactored code setting from vm & state transition to the executioner
* Updated tests
Diffstat (limited to 'core/database_util.go')
-rw-r--r-- | core/database_util.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/core/database_util.go b/core/database_util.go index 18ca1f44c..fd2b4c312 100644 --- a/core/database_util.go +++ b/core/database_util.go @@ -95,20 +95,6 @@ func GetHeadFastBlockHash(db ethdb.Database) common.Hash { return common.BytesToHash(data) } -// GetHeadBlockNum retrieves the block number of the current canonical head block. -func GetHeadBlockNum(db ethdb.Database) *big.Int { - data, _ := db.Get(headBlockKey) - if len(data) == 0 { - return nil - } - header := new(types.Header) - if err := rlp.Decode(bytes.NewReader(data), header); err != nil { - glog.V(logger.Error).Infof("invalid block header RLP for head block: %v", err) - return nil - } - return header.Number -} - // GetHeaderRLP retrieves a block header in its raw RLP database encoding, or nil // if the header's not found. func GetHeaderRLP(db ethdb.Database, hash common.Hash) rlp.RawValue { |