Wow, unvoid! It looks like you have found just another glitch! I think Lannister would send you 2 more BTC (as I recall you are eligible for the first bug bounty as well) if you can reproduce what happened.
This is the error log:
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2016-09-02 23:43:20 FINE: TransactionProcessorImpl.processPeerTransactions: Invalid transaction from peer: {"senderPublicKey":"ae0df06215caa34bf680a84b24330554d0af092b925b5bcf8704ac31cd489019","signature":"d9a188015ff1c333095bb417833ee2baef34baa6eb23db4d5b7bd791c4d88b01de4059f9682553ac6ff1d96f86b352939befbdc6df22c3d513045fa3ac88a612","feeNQT":0,"type":3,"version":1,"ecBlockId":"2573426999249322481","attachment":{"input":[227557251,-1921958936,-762815411],"version.PiggybackedProofOfWork":1,"id":"4210165941331695358"},"subtype":2,"amountNQT":1000000000,"recipient":"12808828738982832951","ecBlockHeight":2242,"deadline":1440,"timestamp":21236953}
nxt.NxtException$NotValidException: Cannot submit POW for an already cancelled or finished work
at nxt.TransactionType$WorkControl$4.validateAttachment(TransactionType.java:641)
at nxt.Attachment$AbstractAttachment.validate(Attachment.java:34)
at nxt.TransactionImpl.validate(TransactionImpl.java:835)
at nxt.TransactionProcessorImpl.processPeerTransactions(TransactionProcessorImpl.java:468)
at nxt.TransactionProcessorImpl.access$8(TransactionProcessorImpl.java:440)
at nxt.TransactionProcessorImpl$5.run(TransactionProcessorImpl.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2016-09-02 23:43:20 FINE: TransactionProcessorImpl.processPeerTransactions: Invalid transaction from peer: {"senderPublicKey":"ae0df06215caa34bf680a84b24330554d0af092b925b5bcf8704ac31cd489019","signature":"7bad419fa86d3389dcecb9c87f7bf4a1aac1996bd570f1f56721e7d536cc250bf18c7cb7687db1c256048176e5509f0150ff0df0c2a9cb0864db82d79a3ce680","feeNQT":0,"type":3,"version":1,"ecBlockId":"9110437482347234720","attachment":{"input":[1908206150,-339794908,-1895261197],"version.PiggybackedProofOfWork":1,"id":"4210165941331695358"},"subtype":2,"amountNQT":1000000000,"recipient":"12808828738982832951","ecBlockHeight":2243,"deadline":1440,"timestamp":21237068}
nxt.NxtException$NotValidException: Cannot submit POW for an already cancelled or finished work
at nxt.TransactionType$WorkControl$4.validateAttachment(TransactionType.java:641)
at nxt.Attachment$AbstractAttachment.validate(Attachment.java:34)
at nxt.TransactionImpl.validate(TransactionImpl.java:835)
at nxt.TransactionProcessorImpl.processPeerTransactions(TransactionProcessorImpl.java:468)
at nxt.TransactionProcessorImpl.access$8(TransactionProcessorImpl.java:440)
at nxt.TransactionProcessorImpl$5.run(TransactionProcessorImpl.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2016-09-02 23:43:20 FINE: TransactionProcessorImpl.processPeerTransactions: Invalid transaction from peer: {"senderPublicKey":"ae0df06215caa34bf680a84b24330554d0af092b925b5bcf8704ac31cd489019","signature":"377a1355b86c0465139542b7994c5c5a999eac25774f1e54076242a6d4232707c8d534fe54ee7fb53cfddd67176cf79f1a8591b4c49e1755301fee0eb21a14ae","feeNQT":0,"type":3,"version":1,"ecBlockId":"12998068690024528804","attachment":{"input":[518577662,1779649994,1251435883],"version.PiggybackedProofOfWork":1,"id":"4210165941331695358"},"subtype":2,"amountNQT":1000000000,"recipient":"12808828738982832951","ecBlockHeight":2244,"deadline":1440,"timestamp":21237090}
nxt.NxtException$NotValidException: Cannot submit POW for an already cancelled or finished work
at nxt.TransactionType$WorkControl$4.validateAttachment(TransactionType.java:641)
at nxt.Attachment$AbstractAttachment.validate(Attachment.java:34)
at nxt.TransactionImpl.validate(TransactionImpl.java:835)
at nxt.TransactionProcessorImpl.processPeerTransactions(TransactionProcessorImpl.java:468)
at nxt.TransactionProcessorImpl.access$8(TransactionProcessorImpl.java:440)
at nxt.TransactionProcessorImpl$5.run(TransactionProcessorImpl.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
java.lang.RuntimeException: Proof of work is invalid: does not meet target
at nxt.WorkLogicManager.validatePOW(WorkLogicManager.java:1199)
at nxt.TransactionType$WorkControl$4.validateAttachment(TransactionType.java:661)
at nxt.Attachment$AbstractAttachment.validate(Attachment.java:34)
at nxt.TransactionImpl.validate(TransactionImpl.java:835)
at nxt.TransactionProcessorImpl.processPeerTransactions(TransactionProcessorImpl.java:468)
at nxt.TransactionProcessorImpl.access$8(TransactionProcessorImpl.java:440)
at nxt.TransactionProcessorImpl$5.run(TransactionProcessorImpl.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2016-09-02 23:43:20 FINE: TransactionProcessorImpl.processPeerTransactions: Invalid transaction from peer: {"senderPublicKey":"ae0df06215caa34bf680a84b24330554d0af092b925b5bcf8704ac31cd489019","signature":"0abe685bdb4060c9d1ed9fe4f471b973797256ce07e37ff588c25083d97b640319dff076e884c6b661a4e37eb97361c5b9845fafcd1ef0958c34f83865b44fd7","feeNQT":0,"type":3,"version":1,"ecBlockId":"9110437482347234720","attachment":{"input":[1365308818,-704527682,-70936512],"version.PiggybackedProofOfWork":1,"id":"11341360148518111736"},"subtype":2,"amountNQT":1000000000,"recipient":"12808828738982832951","ecBlockHeight":2243,"deadline":1440,"timestamp":21237055}
java.lang.RuntimeException: Proof of work is invalid: causes ElasticPL function to crash
at nxt.WorkLogicManager.validatePOW(WorkLogicManager.java:1204)
at nxt.TransactionType$WorkControl$4.validateAttachment(TransactionType.java:661)
at nxt.Attachment$AbstractAttachment.validate(Attachment.java:34)
at nxt.TransactionImpl.validate(TransactionImpl.java:835)
at nxt.TransactionProcessorImpl.processPeerTransactions(TransactionProcessorImpl.java:468)
at nxt.TransactionProcessorImpl.access$8(TransactionProcessorImpl.java:440)
at nxt.TransactionProcessorImpl$5.run(TransactionProcessorImpl.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2016-09-02 23:43:20 FINE: TransactionProcessorImpl.processPeerTransactions: Invalid transaction from peer: {"senderPublicKey":"ae0df06215caa34bf680a84b24330554d0af092b925b5bcf8704ac31cd489019","signature":"74577f9d208e5119e48772a394f7aa255b1895434a876d21b47d0466039c450770031c9f41adee104bc539786d0ea3dba62f03eed82d78f5d5dd7f3e073ca537","feeNQT":0,"type":3,"version":1,"ecBlockId":"2573426999249322481","attachment":{"input":[-658827307,-1689579444,1999346988],"version.PiggybackedProofOfWork":1,"id":"4210165941331695358"},"subtype":2,"amountNQT":1000000000,"recipient":"12808828738982832951","ecBlockHeight":2242,"deadline":1440,"timestamp":21236979}
nxt.NxtException$NotValidException: Cannot submit POW for an already cancelled or finished work
at nxt.TransactionType$WorkControl$4.validateAttachment(TransactionType.java:641)
at nxt.Attachment$AbstractAttachment.validate(Attachment.java:34)
at nxt.TransactionImpl.validate(TransactionImpl.java:835)
at nxt.TransactionProcessorImpl.processPeerTransactions(TransactionProcessorImpl.java:468)
at nxt.TransactionProcessorImpl.access$8(TransactionProcessorImpl.java:440)
at nxt.TransactionProcessorImpl$5.run(TransactionProcessorImpl.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
java.lang.RuntimeException: Proof of work is invalid: does not meet target
at nxt.WorkLogicManager.validatePOW(WorkLogicManager.java:1199)
at nxt.TransactionType$WorkControl$4.validateAttachment(TransactionType.java:661)
at nxt.Attachment$AbstractAttachment.validate(Attachment.java:34)
at nxt.TransactionImpl.validate(TransactionImpl.java:835)
at nxt.TransactionProcessorImpl.processPeerTransactions(TransactionProcessorImpl.java:468)
at nxt.TransactionProcessorImpl.access$8(TransactionProcessorImpl.java:440)
at nxt.TransactionProcessorImpl$5.run(TransactionProcessorImpl.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2016-09-02 23:43:20 FINE: TransactionProcessorImpl.processPeerTransactions: Invalid transaction from peer: {"senderPublicKey":"ae0df06215caa34bf680a84b24330554d0af092b925b5bcf8704ac31cd489019","signature":"0fa10e53673f40371caa1afd80464175fd6db42a735f673e80a94e026a5e5d03772eeccdfd72d7292c130d4c5053c08b638406c7a8ee203afbcbf3504e8542cb","feeNQT":0,"type":3,"version":1,"ecBlockId":"12998068690024528804","attachment":{"input":[-558658430,-1424419223,-684303585],"version.PiggybackedProofOfWork":1,"id":"11341360148518111736"},"subtype":2,"amountNQT":1000000000,"recipient":"12808828738982832951","ecBlockHeight":2244,"deadline":1440,"timestamp":21237106}
java.lang.RuntimeException: Proof of work is invalid: causes ElasticPL function to crash
at nxt.WorkLogicManager.validatePOW(WorkLogicManager.java:1204)
at nxt.TransactionType$WorkControl$4.validateAttachment(TransactionType.java:661)
at nxt.Attachment$AbstractAttachment.validate(Attachment.java:34)
at nxt.TransactionImpl.validate(TransactionImpl.java:835)
at nxt.TransactionProcessorImpl.processPeerTransactions(TransactionProcessorImpl.java:468)
at nxt.TransactionProcessorImpl.access$8(TransactionProcessorImpl.java:440)
at nxt.TransactionProcessorImpl$5.run(TransactionProcessorImpl.java:211)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Validating POW for work = -7105383925191439880
Validating POW for work = -7105383925191439880
java.lang.RuntimeException: Proof of work is invalid: does not meet target
I will have a more detailed look tomorrow morning, I hope nobody is worried, this is expected behaviour! We need to identify all side cases and all glitches that may be possible. Unvoid, thank you so much for helping out! I am sure that you will be rewarded hugely.
The problem currently obviously lies in the block generation routine.
If you take a look at this function
(nxt.BlockchainProcessorImpl.generateBlock(BlockchainProcessorImpl.java:958)), you see it somehow includes invalid work. Not sure why invalid work even got included into the mempool in the first place. Maybe it got accepted first, then not included in any block, and then became invalid due to changed difficulty. Everything that is in the mempool should be accepted in a block in the first place!!! There is a bug somewhere! Clearly.
java.lang.RuntimeException: Proof of work is invalid: does not meet target
at nxt.WorkLogicManager.validatePOW(WorkLogicManager.java:1199)
at nxt.TransactionType$WorkControl$4.validateAttachment(TransactionType.java:661)
at nxt.Attachment$AbstractAttachment.validate(Attachment.java:34)
at nxt.TransactionImpl.validate(TransactionImpl.java:835)
at nxt.BlockchainProcessorImpl.generateBlock(BlockchainProcessorImpl.java:958)
at nxt.Generator.forge(Generator.java:296)
at nxt.Generator$1.run(Generator.java:79)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2016-09-02 23:55:21 FINE: Generator$1.run: Error in block generation thread
I would say, if you can fix this mistake before my holiday is over I would give you 5 BTC of my personal savings on top of the bug bounties that Lannister will pay out to you.