aboutsummaryrefslogtreecommitdiffstats
path: root/pow/dagger/dagger.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-04 00:55:29 +0800
committerobscuren <geffobscura@gmail.com>2015-03-04 00:55:29 +0800
commit53b5a45856c5d4c307dc55b4ae1b46efd9471142 (patch)
tree56eb1f936610cc461742d2bb08431e304870e85a /pow/dagger/dagger.go
parentb0aaa77f0213cb525a873c3bea92e8a06cff423f (diff)
parent313fe3861b3c338b3b6304adac46c86af7e2d52e (diff)
downloadgo-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.gz
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.bz2
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.lz
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.xz
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.tar.zst
go-tangerine-53b5a45856c5d4c307dc55b4ae1b46efd9471142.zip
Merge branch 'xcthulhu-publictests' into poc-9
Diffstat (limited to 'pow/dagger/dagger.go')
-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 {