sandoche / Proof-of-Stake-Cryptocurrency-generator

🍀 Create your own Proof of Stake cryptocurrency with its own blockchain based on NXT
https://coingenerator.sh
MIT License
360 stars 437 forks source link

SEVERE ERROR #60

Open Oxichain opened 3 years ago

Oxichain commented 3 years ago

Hello, I just created my Cryptocurrency and I want it to go into forging mode. Once I type in the command curl -d requestType=startForging -d secretPhrase="HERE I WRITE MY SECRET PHRASE" http://localhost:7375/nxt it gives me following error:

2021-05-08 12:42:50 SEVERE: Error in block generation thread
java.lang.NullPointerException: Cannot invoke "nxt.Block.getHeight()" because "<parameter1>" is null
    at nxt.Generator.setLastBlock(Generator.java:323)
    at nxt.Generator$1.run(Generator.java:79)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    at java.base/java.lang.Thread.run(Thread.java:831)