pond: storage miner method updates
This commit is contained in:
parent
29f26cb8d1
commit
6a50f23cd7
@ -70,7 +70,7 @@ class StorageNode extends React.Component {
|
||||
async loadInfo() {
|
||||
const version = await this.state.client.call("Filecoin.Version", [])
|
||||
const peers = await this.state.client.call("Filecoin.NetPeers", [])
|
||||
const [actor] = await this.state.client.call("Filecoin.ActorAddresses", [])
|
||||
const actor = await this.state.client.call("Filecoin.ActorAddress", [])
|
||||
|
||||
const stActor = await this.props.fullConn.call('Filecoin.StateGetActor', [actor, null])
|
||||
const actorState = await this.props.fullConn.call('Filecoin.StateReadState', [stActor, null])
|
||||
@ -80,9 +80,9 @@ class StorageNode extends React.Component {
|
||||
}
|
||||
|
||||
async stagedList() {
|
||||
let stagedList = await this.state.client.call("Filecoin.SectorsStagedList", [])
|
||||
let stagedList = await this.state.client.call("Filecoin.SectorsList", [])
|
||||
let staged = await stagedList
|
||||
.map(sector => this.state.client.call("Filecoin.SectorsStatus", [sector.SectorID]))
|
||||
.map(sector => this.state.client.call("Filecoin.SectorsStatus", [sector]))
|
||||
.reduce(async (p, n) => [...await p, await n], Promise.resolve([]))
|
||||
|
||||
let statusCounts = staged.reduce((p, n) => p.map((e, i) => e + (i === n.State ? 1 : 0) ), [0, 0, 0, 0, 0])
|
||||
|
@ -161,7 +161,7 @@ func (m *Miner) mine(ctx context.Context) {
|
||||
continue
|
||||
}
|
||||
if base.ts.Equals(lastBase.ts) && len(lastBase.tickets) == len(base.tickets) {
|
||||
log.Error("BestMiningCandidate from the previous round: %s (tkts:%d)", lastBase.ts.Cids(), len(lastBase.tickets))
|
||||
log.Errorf("BestMiningCandidate from the previous round: %s (tkts:%d)", lastBase.ts.Cids(), len(lastBase.tickets))
|
||||
time.Sleep(build.BlockDelay * time.Second)
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user