aboutsummaryrefslogtreecommitdiffstats
path: root/dagger.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-01-15 04:48:16 +0800
committerobscuren <geffobscura@gmail.com>2014-01-15 04:48:16 +0800
commit44900e363cbc81b640bc16bcc7e6a50c22352be4 (patch)
treecf7ce2273bc493ec0757d1d445f9bb1aa9024ae3 /dagger.go
parent578b63e2b8a32122fb45f9f053503e51d9a5c535 (diff)
downloadgo-tangerine-44900e363cbc81b640bc16bcc7e6a50c22352be4.tar
go-tangerine-44900e363cbc81b640bc16bcc7e6a50c22352be4.tar.gz
go-tangerine-44900e363cbc81b640bc16bcc7e6a50c22352be4.tar.bz2
go-tangerine-44900e363cbc81b640bc16bcc7e6a50c22352be4.tar.lz
go-tangerine-44900e363cbc81b640bc16bcc7e6a50c22352be4.tar.xz
go-tangerine-44900e363cbc81b640bc16bcc7e6a50c22352be4.tar.zst
go-tangerine-44900e363cbc81b640bc16bcc7e6a50c22352be4.zip
Updated to temporary trie
Diffstat (limited to 'dagger.go')
-rw-r--r--dagger.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/dagger.go b/dagger.go
index 0cc63ea94..966bfa461 100644
--- a/dagger.go
+++ b/dagger.go
@@ -116,8 +116,8 @@ func (dag *Dagger) Node(L uint64, i uint64) *big.Int {
}
func Sum(sha hash.Hash) []byte {
- in := make([]byte, 32)
- return sha.Sum(in)
+ //in := make([]byte, 32)
+ return sha.Sum(nil)
}
func (dag *Dagger) Eval(N *big.Int) *big.Int {
@@ -146,3 +146,4 @@ func (dag *Dagger) Eval(N *big.Int) *big.Int {
return ret.SetBytes(Sum(sha))
}
+