kowala-tech / kcoin

A stable cryptocurrency that algorithmically targets $1 USD using the Kowala Protocol
https://www.kowala.tech/
Other
18 stars 16 forks source link

Crash/bad error message when attempting to mine #786

Closed adamking closed 5 years ago

adamking commented 5 years ago

Type:

Issue

What happened? / What do you need?:

I attempted to start mining and the console returned an error but the message seems like a crash.

If it's a request, what do you need it for?:

If it's an issue, how can we reproduce it?:

Start with no mTokens and run:

validator.start(web3.toWei(1000000,“kcoin”)) (anonymous): Line 1:36 Unexpected token ILLEGAL (and 4 more errors)

Affected servers or services:

Priority:

Low

(Please be aware that your priority may not match ours, we'll use this as guidance only).

Other info we may need:

rgeraldes commented 5 years ago

validator.start(web3.toWei(n, 'ether'))

adamking commented 5 years ago

“ether” gave @johnreitano an error, and he needed to replace it with "kcoin". Nevertheless, the error message is confusing.

rgeraldes commented 5 years ago

In the meantime, try replacing toWei() with eighteen zeros. validator.start(1000000000000000000000000) This command is working in the e2e tests.