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
|
||||
// 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])
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user