pond: Temp hack to have at least the genesis miner work

This commit is contained in:
Łukasz Magiera 2019-08-20 00:08:30 +02:00
parent 89ea5a4750
commit 1bacee146d
2 changed files with 5 additions and 3 deletions

View File

@ -63,10 +63,10 @@ class FullNode extends React.Component {
// TODO: Use actual miner address
// see cli/miner.go
this.setState({mining: true})
let addr = "t0523423423" // in case we have no wallets
if (this.state.defaultAddr) {
let addr = "t0101" // in case we have no wallets
/*if (this.state.defaultAddr) {
addr = this.state.defaultAddr
}
}*/
this.setState({mining: true})
await this.props.client.call("Filecoin.MinerStart", [addr])

View File

@ -80,6 +80,8 @@ func (m *Miner) Mine(ctx context.Context) {
b, err := m.mineOne(ctx, base)
if err != nil {
log.Errorf("mining block failed: %s", err)
log.Warn("waiting 400ms before attempting to mine a block")
time.Sleep(400 * time.Millisecond)
continue
}