Documentation
¶
Index ¶
- type DB
- func (p *DB) AssignTask(projectID uint64, taskID common.Hash, prover common.Address) error
- func (p *DB) BlockHead() (uint64, common.Hash, error)
- func (p *DB) CreateTask(projectID uint64, taskID common.Hash) error
- func (p *DB) DeleteTask(projectID uint64, taskID common.Hash) error
- func (p *DB) NBits() (uint32, error)
- func (p *DB) Provers() ([]common.Address, error)
- func (p *DB) ScannedBlockNumber() (uint64, error)
- func (p *DB) UnassignedTask() (uint64, common.Hash, error)
- func (p *DB) UpsertBlockHead(number uint64, hash common.Hash) error
- func (p *DB) UpsertNBits(nbits uint32) error
- func (p *DB) UpsertProver(id uint64, operator common.Address) error
- func (p *DB) UpsertScannedBlockNumber(number uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AssignTask ¶
func (*DB) ScannedBlockNumber ¶
func (*DB) UpsertNBits ¶
func (*DB) UpsertScannedBlockNumber ¶
Click to show internal directories.
Click to hide internal directories.