quorum/pow/block.go

21 lines
329 B
Go
Raw Normal View History

2014-12-10 07:45:16 -08:00
package pow
2015-02-28 11:58:37 -08:00
import (
"github.com/ethereum/go-ethereum/core/types"
"math/big"
)
2014-12-10 07:45:16 -08:00
type Block interface {
Difficulty() *big.Int
2014-12-10 07:45:16 -08:00
HashNoNonce() []byte
2015-02-27 12:59:33 -08:00
Nonce() []byte
2015-02-27 17:56:24 -08:00
MixDigest() []byte
SeedHash() []byte
2015-02-28 11:58:37 -08:00
NumberU64() uint64
}
type ChainManager interface {
GetBlockByNumber(uint64) *types.Block
CurrentBlock() *types.Block
2014-12-10 07:45:16 -08:00
}