mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
fix N being overwritten by BigInt.Div functionality
This commit is contained in:
parent
ce40e51ae5
commit
06adb4c9ae
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ func Sum(sha hash.Hash) []byte {
|
||||||
|
|
||||||
func (dag *Dagger) Eval(N *big.Int) *big.Int {
|
func (dag *Dagger) Eval(N *big.Int) *big.Int {
|
||||||
pow := BigPow(2, 26)
|
pow := BigPow(2, 26)
|
||||||
dag.xn = N.Div(N, pow)
|
dag.xn = pow.Div(N, pow)
|
||||||
|
|
||||||
sha := sha3.NewKeccak224()
|
sha := sha3.NewKeccak224()
|
||||||
sha.Reset()
|
sha.Reset()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue