aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_pow.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-03-06 02:00:01 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-03-09 22:50:14 +0800
commit567d41d9363706b4b13ce0903804e8acf214af49 (patch)
tree8c091f0385589074573df3f7964c99417c5950ee /core/chain_pow.go
parent3b00a77de57ab2737a7887521c192ce004c721e3 (diff)
downloadgo-tangerine-567d41d9363706b4b13ce0903804e8acf214af49.tar.gz
go-tangerine-567d41d9363706b4b13ce0903804e8acf214af49.tar.zst
go-tangerine-567d41d9363706b4b13ce0903804e8acf214af49.zip
all: swap out the C++ ethash to the pure Go one (mining todo)
Diffstat (limited to 'core/chain_pow.go')
-rw-r--r--core/chain_pow.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_pow.go b/core/chain_pow.go
index c3b5788c1..e5ccd87e2 100644
--- a/core/chain_pow.go
+++ b/core/chain_pow.go
@@ -65,7 +65,7 @@ func verifyNonces(checker pow.PoW, items []pow.Block) (chan<- struct{}, <-chan n
for i := 0; i < workers; i++ {
go func() {
for index := range tasks {
- results <- nonceCheckResult{index: index, valid: checker.Verify(items[index])}
+ results <- nonceCheckResult{index: index, valid: checker.Verify(items[index]) == nil}
}
}()
}