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

ERROR rover.lsk.rover Rejected promise #236

Open Simon0x opened 6 years ago

Simon0x commented 6 years ago

Prerequisites

For more information, see the CONTRIBUTING guide.

Description

When we try to consume the lsk blockchain then we have sometimes a problem.

Steps to Reproduce

  1. Run latest version of the miner

Expected behavior: You should check whether the data is valid so that a broken/empty object is not accessed.

Actual behavior: Error when try to use the id of an invalid block.

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-08T19:13:02.336Z ERROR  rover.lsk.rover Rejected promise, trace:
TypeError: Cannot read property 'id' of undefined
at getBlock.then.lastBlock (/home/bc/bcnode/lib/rover/lsk/controller.js:133:80)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:182:7)