Hello,
Thanks for providing this framework.
I'm using the nxt-clone-starter kit and have followed the YouTube video plus a Medium article for creating a Proof-of-Stake crypto using NXT.
I'm able to get my new crypto node up and running, and I can see the available balance for the seed balances, but I'm not able to view the blocks in the GUI when the node is forging.
An exception is constantly thrown with little detail about why it's being thrown. Repeat, this exception is thrown in forging mode.
Blocks are getting made. I'm getting a log statement to output:
2021-04-19 01:03:55 FINE: Account generated block 3519090056612070497 at height 25 timestamp 47017 fee 0.0
I am able to view the blocks when the system IS NOT forging.
I'm running version 1.12.2. Here's the stack trace of what is thrown:
2021-04-19 01:04:25 FINE: Error processing API request
java.lang.RuntimeException: java.lang.IllegalStateException: Attempting to load invalid block
at nxt.db.DbIterator.next(DbIterator.java:73)
at nxt.http.GetBlocks.processRequest(GetBlocks.java:49)
at nxt.http.APIServlet$APIRequestHandler.processRequest(APIServlet.java:94)
at nxt.http.APIServlet.process(APIServlet.java:265)
at nxt.http.APIServlet.doGet(APIServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1780)
at nxt.http.API$XFrameOptionsFilter.doFilter(API.java:548)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1767)
at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:308)
at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:262)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1767)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:435)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1182)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:513)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
at org.eclipse.jetty.server.Server.handle(Server.java:539)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Attempting to load invalid block
at nxt.BlockDb.loadBlock(BlockDb.java:250)
at nxt.BlockDb.loadBlock(BlockDb.java:233)
at nxt.db.DbIterator.next(DbIterator.java:68)
... 35 more
Thanks for your assistance.
Thanks,
Will