Skip to content

Commit a69ee0b

Browse files
committed
fix mock blockchain; golint; bump patch
1 parent e1e392f commit a69ee0b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/blockchain.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import (
4343
"github.com/ethereum/go-ethereum/params"
4444
"github.com/ethereum/go-ethereum/rlp"
4545
"github.com/ethereum/go-ethereum/trie"
46-
"github.com/hashicorp/golang-lru"
46+
lru "github.com/hashicorp/golang-lru"
4747
)
4848

4949
var (
@@ -2288,13 +2288,11 @@ func (bc *BlockChain) LockTrie(root common.Hash) {
22882288
bc.trieLock.Lock()
22892289
bc.lockedRoots[root] = true
22902290
bc.trieLock.Unlock()
2291-
return
22922291
}
22932292

22942293
// UnlockTrie allows dereferencing of the provided root- provided it was previously locked
22952294
func (bc *BlockChain) UnlockTrie(root common.Hash) {
22962295
bc.trieLock.Lock()
22972296
bc.lockedRoots[root] = false
22982297
bc.trieLock.Unlock()
2299-
return
23002298
}

params/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424
VersionMajor = 1 // Major version component of the current release
2525
VersionMinor = 9 // Minor version component of the current release
2626
VersionPatch = 11 // Patch version component of the current release
27-
VersionMeta = "statediff-0.0.3" // Version metadata to append to the version string
27+
VersionMeta = "statediff-0.0.4" // Version metadata to append to the version string
2828
)
2929

3030
// Version holds the textual version string.

statediff/testhelpers/mocks/blockchain.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,5 @@ func (blockChain *BlockChain) SetTdByHash(hash common.Hash, td *big.Int) {
124124
}
125125
blockChain.TDByHash[hash] = td
126126
}
127+
128+
func (blockChain *BlockChain) UnlockTrie(root common.Hash) {}

0 commit comments

Comments
 (0)