From 1bacee146ddef2940adad15ce958bc8b4daeea94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 20 Aug 2019 00:08:30 +0200 Subject: [PATCH] pond: Temp hack to have at least the genesis miner work --- lotuspond/front/src/FullNode.js | 6 +++--- miner/miner.go | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lotuspond/front/src/FullNode.js b/lotuspond/front/src/FullNode.js index cb10a2110..a53990cea 100644 --- a/lotuspond/front/src/FullNode.js +++ b/lotuspond/front/src/FullNode.js @@ -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]) diff --git a/miner/miner.go b/miner/miner.go index 92b666e17..71097c7e7 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -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 }