pond: Temp hack to have at least the genesis miner work
This commit is contained in:
parent
89ea5a4750
commit
1bacee146d
@ -63,10 +63,10 @@ class FullNode extends React.Component {
|
|||||||
// TODO: Use actual miner address
|
// TODO: Use actual miner address
|
||||||
// see cli/miner.go
|
// see cli/miner.go
|
||||||
this.setState({mining: true})
|
this.setState({mining: true})
|
||||||
let addr = "t0523423423" // in case we have no wallets
|
let addr = "t0101" // in case we have no wallets
|
||||||
if (this.state.defaultAddr) {
|
/*if (this.state.defaultAddr) {
|
||||||
addr = this.state.defaultAddr
|
addr = this.state.defaultAddr
|
||||||
}
|
}*/
|
||||||
|
|
||||||
this.setState({mining: true})
|
this.setState({mining: true})
|
||||||
await this.props.client.call("Filecoin.MinerStart", [addr])
|
await this.props.client.call("Filecoin.MinerStart", [addr])
|
||||||
|
@ -80,6 +80,8 @@ func (m *Miner) Mine(ctx context.Context) {
|
|||||||
b, err := m.mineOne(ctx, base)
|
b, err := m.mineOne(ctx, base)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("mining block failed: %s", err)
|
log.Errorf("mining block failed: %s", err)
|
||||||
|
log.Warn("waiting 400ms before attempting to mine a block")
|
||||||
|
time.Sleep(400 * time.Millisecond)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user