Integrate new ethash API and change geth makedag cmd

This commit is contained in:
Gustav Simonsson
2015-05-05 08:24:15 +02:00
parent 50659f4b48
commit b1cc9cdc74
9 changed files with 41 additions and 27 deletions

View File

@ -14,8 +14,8 @@ import (
// So we can generate blocks easily
type FakePow struct{}
func (f FakePow) Search(block pow.Block, stop <-chan struct{}) (uint64, []byte, []byte) {
return 0, nil, nil
func (f FakePow) Search(block pow.Block, stop <-chan struct{}) (uint64, []byte) {
return 0, nil
}
func (f FakePow) Verify(block pow.Block) bool { return true }
func (f FakePow) GetHashrate() int64 { return 0 }