bcnode icon indicating copy to clipboard operation
bcnode copied to clipboard

ERROR rover.lsk.rover Rejected promise

Open Simon0x opened this issue 6 years ago • 0 comments

Prerequisites

  • [x] Are you running the latest version?
  • [x] Did you build from source?
  • [x] Do you use the master branch?
  • [x] Did you check the README.md for steps to run?
  • [x] Did you check logs? (either in console or in _logs directory)

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:

  • Built from source
  • Run the miner using forever: forever start ./bin/cli start --miner-key CryptoSmileee --node --ui --ws

Environment (optional but helpful)

  • OS Version (Ubuntu 17.10)
  • Nodejs (v9.11.1)
  • Rust (rustc 1.27.0-nightly (ad610bed8 2018-04-11))

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) 

Simon0x avatar May 09 '18 07:05 Simon0x