plugeth/pow/block.go
Matthew Wampler-Doty de9f79133f Introducing ethash
2015-03-02 22:29:34 -05:00

21 lines
329 B
Go

package pow
import (
"github.com/ethereum/go-ethereum/core/types"
"math/big"
)
type Block interface {
Difficulty() *big.Int
HashNoNonce() []byte
Nonce() []byte
MixDigest() []byte
SeedHash() []byte
NumberU64() uint64
}
type ChainManager interface {
GetBlockByNumber(uint64) *types.Block
CurrentBlock() *types.Block
}