aboutsummaryrefslogtreecommitdiffstats
path: root/core/database_util.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-05-25 22:40:51 +0800
committerGitHub <noreply@github.com>2017-05-25 22:40:51 +0800
commitb7ff0d42e3adbacd6f4186c633cf73d06bd16324 (patch)
tree6abc554b343b8f68e76b7303e652f22f89e47d5e /core/database_util.go
parent07aae19e5da66ed404453e6be70ab84db516207b (diff)
parentc98bce709c392f3b469f956b5f66f095a30a7e2b (diff)
downloadgo-tangerine-b7ff0d42e3adbacd6f4186c633cf73d06bd16324.tar
go-tangerine-b7ff0d42e3adbacd6f4186c633cf73d06bd16324.tar.gz
go-tangerine-b7ff0d42e3adbacd6f4186c633cf73d06bd16324.tar.bz2
go-tangerine-b7ff0d42e3adbacd6f4186c633cf73d06bd16324.tar.lz
go-tangerine-b7ff0d42e3adbacd6f4186c633cf73d06bd16324.tar.xz
go-tangerine-b7ff0d42e3adbacd6f4186c633cf73d06bd16324.tar.zst
go-tangerine-b7ff0d42e3adbacd6f4186c633cf73d06bd16324.zip
Merge pull request #14515 from karalabe/golint-tooooolong
core: fix various golint warnings and errors
Diffstat (limited to 'core/database_util.go')
-rw-r--r--core/database_util.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/database_util.go b/core/database_util.go
index bcd99be5f..b4a230c9c 100644
--- a/core/database_util.go
+++ b/core/database_util.go
@@ -64,7 +64,7 @@ var (
oldBlockReceiptsPrefix = []byte("receipts-block-")
oldBlockHashPrefix = []byte("block-hash-") // [deprecated by the header/block split, remove eventually]
- ChainConfigNotFoundErr = errors.New("ChainConfig not found") // general config not found error
+ ErrChainConfigNotFound = errors.New("ChainConfig not found") // general config not found error
mipmapBloomMu sync.Mutex // protect against race condition when updating mipmap blooms
@@ -546,7 +546,7 @@ func mipmapKey(num, level uint64) []byte {
return append(mipmapPre, append(lkey, key.Bytes()...)...)
}
-// WriteMapmapBloom writes each address included in the receipts' logs to the
+// WriteMipmapBloom writes each address included in the receipts' logs to the
// MIP bloom bin.
func WriteMipmapBloom(db ethdb.Database, number uint64, receipts types.Receipts) error {
mipmapBloomMu.Lock()
@@ -638,7 +638,7 @@ func WriteChainConfig(db ethdb.Database, hash common.Hash, cfg *params.ChainConf
func GetChainConfig(db ethdb.Database, hash common.Hash) (*params.ChainConfig, error) {
jsonChainConfig, _ := db.Get(append(configPrefix, hash[:]...))
if len(jsonChainConfig) == 0 {
- return nil, ChainConfigNotFoundErr
+ return nil, ErrChainConfigNotFound
}
var config params.ChainConfig