aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-28 20:00:25 +0800
committerGitHub <noreply@github.com>2017-02-28 20:00:25 +0800
commitd4f60d362b8fcf82db1accf89c146a2a71375841 (patch)
tree60d65b744b69bbe477143ea444adba290653651a /core
parentdbd88a1aa493d5f7bde5692c9649f795ad0bd7b0 (diff)
parent46bcd9a92c747bd6f2f6f7377d39f3949469203c (diff)
downloadgo-tangerine-d4f60d362b8fcf82db1accf89c146a2a71375841.tar
go-tangerine-d4f60d362b8fcf82db1accf89c146a2a71375841.tar.gz
go-tangerine-d4f60d362b8fcf82db1accf89c146a2a71375841.tar.bz2
go-tangerine-d4f60d362b8fcf82db1accf89c146a2a71375841.tar.lz
go-tangerine-d4f60d362b8fcf82db1accf89c146a2a71375841.tar.xz
go-tangerine-d4f60d362b8fcf82db1accf89c146a2a71375841.tar.zst
go-tangerine-d4f60d362b8fcf82db1accf89c146a2a71375841.zip
Merge pull request #3721 from karalabe/drop-legacy-db-updates
core, eth: drop database block splitting upgrader
Diffstat (limited to 'core')
-rw-r--r--core/database_util.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/core/database_util.go b/core/database_util.go
index 23240b35e..68263f8d8 100644
--- a/core/database_util.go
+++ b/core/database_util.go
@@ -539,24 +539,6 @@ func DeleteReceipt(db ethdb.Database, hash common.Hash) {
db.Delete(append(receiptsPrefix, hash.Bytes()...))
}
-// [deprecated by the header/block split, remove eventually]
-// GetBlockByHashOld returns the old combined block corresponding to the hash
-// or nil if not found. This method is only used by the upgrade mechanism to
-// access the old combined block representation. It will be dropped after the
-// network transitions to eth/63.
-func GetBlockByHashOld(db ethdb.Database, hash common.Hash) *types.Block {
- data, _ := db.Get(append(oldBlockHashPrefix, hash[:]...))
- if len(data) == 0 {
- return nil
- }
- var block types.StorageBlock
- if err := rlp.Decode(bytes.NewReader(data), &block); err != nil {
- log.Error(fmt.Sprintf("invalid block RLP for hash %x: %v", hash, err))
- return nil
- }
- return (*types.Block)(&block)
-}
-
// returns a formatted MIP mapped key by adding prefix, canonical number and level
//
// ex. fn(98, 1000) = (prefix || 1000 || 0)