ipld-eth-server/pkg/repositories/repository.go

12 lines
313 B
Go
Raw Normal View History

package repositories
2017-11-06 18:53:43 +00:00
import "github.com/8thlight/vulcanizedb/pkg/core"
type Repository interface {
CreateBlock(block core.Block) error
2017-11-06 20:15:02 +00:00
BlockCount() int
FindBlockByNumber(blockNumber int64) *core.Block
MaxBlockNumber() int64
MissingBlockNumbers(startingBlockNumber int64, endingBlockNumber int64) []int64
}