4c84173bc0
* The command populates up to the highest known block number * The anticipated use case is that the listener will be running in parallel to the populateBlocks command * This will mean that the listener is responsible for picking up new blocks, and the populateBlocks command is reposible for historical blocks * Reformat SQL statements
12 lines
307 B
Go
12 lines
307 B
Go
package repositories
|
|
|
|
import "github.com/8thlight/vulcanizedb/pkg/core"
|
|
|
|
type Repository interface {
|
|
CreateBlock(block core.Block)
|
|
BlockCount() int
|
|
FindBlockByNumber(blockNumber int64) *core.Block
|
|
MaxBlockNumber() int64
|
|
MissingBlockNumbers(startingBlockNumber int64, endingBlockNumber int64) []int64
|
|
}
|