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.wav.rover Rejected promise, trace: TypeError [ERR_INVALID_ARG_TYPE] #246

Open Simon0x opened 6 years ago

Simon0x commented 6 years ago

Prerequisites

For more information, see the CONTRIBUTING guide.

Description

The wav rover has a rejected promise because of wrong argument type.

Steps to Reproduce

  1. Run latest version of the miner

Expected behavior: This should be handled and the error should not occure

Actual behavior: Sometimes the wav rover has wrong arguments

Versions

(0.5.5/124bab0)

Application (required)

You can get this information:

Environment (optional but helpful)

Logs

Full Log: telobot.com/YD2o.log

 2018-05-17T05:20:37.485Z ERROR rover.wav.rover Rejected promise, trace:
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer,   Array, or Array-like Object. Received type undefined
at Function.from (buffer.js:195:11)
at exports.blake2b.input (/home/bc/bcnode/lib/utils/crypto.js:23:32)
at getMerkleRoot (/home/bc/bcnode/lib/rover/wav/controller.js:29:12)
at _createUnifiedBlock (/home/bc/bcnode/lib/rover/wav/controller.js:50:11)
at createUnifiedBlock (/home/bc/bcnode/lib/rover/helper.js:25:24)
at getBlock.then.lastBlock (/home/bc/bcnode/lib/rover/wav/controller.js:117:34)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:182:7)