blockcollider / bcnode

Mining node and rovers for the five genesis chains of Block Collider.
https://www.blockcollider.org
MIT License
45 stars 23 forks source link

WARN bc.miner_worker Mining failed with reason #230

Open Simon0x opened 6 years ago

Simon0x commented 6 years ago

Prerequisites

For more information, see the CONTRIBUTING guide.

Description

The log show that the miner has sometimes problem to mine:

Steps to Reproduce

  1. Run latest version of the miner

Expected behavior: Should check if the data used to store is valid

Actual behavior: The miner produce a warning with a stacktrace

Versions

(0.5.5/9905e51)

Application (required)

You can get this information:

Environment (optional but helpful)

Logs

Full Log: http://telobot.com/UP_o.log

2018-05-08T16:57:01.998Z WARN   bc.miner_worker Mining failed with reason: Number can only safely store up to 53 bits, stack Error: Number can only safely store up to 53 bits
at assert (/home/bc/bcnode/node_modules/bn.js/lib/bn.js:6:21)
at BN.toNumber (/home/bc/bcnode/node_modules/bn.js/lib/bn.js:506:7)
at /home/bc/bcnode/lib/bc/miner_worker.js:54:81
at mine (/home/bc/bcnode/lib/bc/miner.js:293:20)
at process.on (/home/bc/bcnode/lib/bc/miner_worker.js:59:24)
at process.emit (events.js:180:13)
at emit (internal/child_process.js:783:12)
at process._tickCallback (internal/process/next_tick.js:178:19) 
akloboucnik commented 6 years ago

Thanks for reporting @CryptoSmileee – I think this one is fixed by #220 which is in master branch just now so it should disappear after the next release but let's leave this open – I will take care of closing it after we test that it does not happen in the new version.

akloboucnik commented 6 years ago

Oh, now I see it also appears in master, no problem, will fix it soon.

Simon0x commented 6 years ago

@akloboucnik

I work with the latest version of master. And no problem, Tomas told me to report all this stuff here if I find something :)

akloboucnik commented 6 years ago

@CryptoSmileee sure, please do. You're doing great job! 👍