add info method to miner state API
This commit is contained in:
parent
cc4d5306eb
commit
7fa6c1e8d0
@ -35,6 +35,7 @@ type State interface {
|
|||||||
LoadDeadline(idx uint64) (Deadline, error)
|
LoadDeadline(idx uint64) (Deadline, error)
|
||||||
ForEachDeadline(cb func(idx uint64, dl Deadline) error) error
|
ForEachDeadline(cb func(idx uint64, dl Deadline) error) error
|
||||||
NumDeadlines() (uint64, error)
|
NumDeadlines() (uint64, error)
|
||||||
|
Info() (MinerInfo, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type Deadline interface {
|
type Deadline interface {
|
||||||
|
Loading…
Reference in New Issue
Block a user