aboutsummaryrefslogtreecommitdiffstats
path: root/pow/dagger
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-10 08:22:38 +0800
committerobscuren <geffobscura@gmail.com>2015-03-10 08:22:38 +0800
commit0db4a0e898d09ffa7b6b1289e9a334edc0001cfa (patch)
treea0b5c8381ab482550ef4800a06d4db086d76a983 /pow/dagger
parent94e543bc398efbb5c712b6e4cb48d8a57eb3400d (diff)
parent0d64163fea3a266ceb71cb4c4ee5682052c9ca6c (diff)
downloaddexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar.gz
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar.bz2
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar.lz
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar.xz
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.tar.zst
dexon-0db4a0e898d09ffa7b6b1289e9a334edc0001cfa.zip
Merge branch 'poc-9' into develop
Diffstat (limited to 'pow/dagger')
-rw-r--r--pow/dagger/dagger.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pow/dagger/dagger.go b/pow/dagger/dagger.go
index 310f8abdd..3da7683d5 100644
--- a/pow/dagger/dagger.go
+++ b/pow/dagger/dagger.go
@@ -44,7 +44,7 @@ func (dag *Dagger) Find(obj *big.Int, resChan chan int64) {
resChan <- 0
}
-func (dag *Dagger) Search(hash, diff *big.Int) *big.Int {
+func (dag *Dagger) Search(hash, diff *big.Int) ([]byte, []byte, []byte) {
// TODO fix multi threading. Somehow it results in the wrong nonce
amountOfRoutines := 1
@@ -69,7 +69,7 @@ func (dag *Dagger) Search(hash, diff *big.Int) *big.Int {
}
}
- return big.NewInt(res)
+ return big.NewInt(res).Bytes(), nil, nil
}
func (dag *Dagger) Verify(hash, diff, nonce *big.Int) bool {