diff options
author | zelig <viktor.tron@gmail.com> | 2015-03-16 16:19:09 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-03-16 16:19:09 +0800 |
commit | 8139d444f8d8163251d1c96ef8034d186825ce32 (patch) | |
tree | 6be489bf8d99e68efd3ec7cccd62cf6680d109b0 /Godeps | |
parent | ece5c2aade24228006ef67c9a01b62f95e9b3bad (diff) | |
parent | 0b8f66ed9ef177dc72442dd7ba337c6733e30344 (diff) | |
download | go-tangerine-8139d444f8d8163251d1c96ef8034d186825ce32.tar go-tangerine-8139d444f8d8163251d1c96ef8034d186825ce32.tar.gz go-tangerine-8139d444f8d8163251d1c96ef8034d186825ce32.tar.bz2 go-tangerine-8139d444f8d8163251d1c96ef8034d186825ce32.tar.lz go-tangerine-8139d444f8d8163251d1c96ef8034d186825ce32.tar.xz go-tangerine-8139d444f8d8163251d1c96ef8034d186825ce32.tar.zst go-tangerine-8139d444f8d8163251d1c96ef8034d186825ce32.zip |
Merge remote-tracking branch 'upstream/develop' into frontier/nodeadmin.js
Diffstat (limited to 'Godeps')
-rw-r--r-- | Godeps/Godeps.json | 4 | ||||
-rw-r--r-- | Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/Godeps/Godeps.json b/Godeps/Godeps.json index 988c21d4f..e6eab504d 100644 --- a/Godeps/Godeps.json +++ b/Godeps/Godeps.json @@ -22,8 +22,8 @@ }, { "ImportPath": "github.com/ethereum/ethash", - "Comment": "v23-11-g5376ec8", - "Rev": "5376ec8816d6bf787d4fc91a08b4527bc5e1f469" + "Comment": "v23-12-g149261a", + "Rev": "149261a5d7cafc3943cbcf1d370082ec70d81e8b" }, { "ImportPath": "github.com/ethereum/serpent-go", diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go b/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go index 6f1302bb8..1f615058d 100644 --- a/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go +++ b/Godeps/_workspace/src/github.com/ethereum/ethash/ethash.go @@ -102,7 +102,9 @@ func makeParamsAndCache(chainManager pow.ChainManager, blockNum uint64) (*Params func (pow *Ethash) UpdateCache(force bool) error { pow.cacheMutex.Lock() - thisEpoch := pow.chainManager.CurrentBlock().NumberU64() + defer pow.cacheMutex.Unlock() + + thisEpoch := pow.chainManager.CurrentBlock().NumberU64() / epochLength if force || pow.paramsAndCache.Epoch != thisEpoch { var err error pow.paramsAndCache, err = makeParamsAndCache(pow.chainManager, pow.chainManager.CurrentBlock().NumberU64()) @@ -110,7 +112,7 @@ func (pow *Ethash) UpdateCache(force bool) error { panic(err) } } - pow.cacheMutex.Unlock() + return nil } |