forked from cerc-io/ipld-eth-server
df9e7ebcc5
* Repository returns error when CreateBlock fails.
12 lines
313 B
Go
12 lines
313 B
Go
package repositories
|
|
|
|
import "github.com/8thlight/vulcanizedb/pkg/core"
|
|
|
|
type Repository interface {
|
|
CreateBlock(block core.Block) error
|
|
BlockCount() int
|
|
FindBlockByNumber(blockNumber int64) *core.Block
|
|
MaxBlockNumber() int64
|
|
MissingBlockNumbers(startingBlockNumber int64, endingBlockNumber int64) []int64
|
|
}
|