Post
Topic
Board Announcements (Altcoins)
Re: [ANN - NEW COIN JUST LAUNCHED] *EarthCoin* Is Here To Make A Splash For 2014!
by
flound1129
on 08/01/2014, 08:10:56 UTC
The submitblock patch given earlier in the thread and merged in the code breaks the submitblock API.

If the block is accepted, submitblock is supposed to return Null, not True:

https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki#Block_Submission
Quote
This method MUST return either null (when a share is accepted), a String describing briefly the reason the share was rejected, or an Object of these with a key for each merged-mining chain the share was submitted to.

Line 1874 in bitcoinrpc.cpp needs to be changed from:

Code:
return true;

to

Code:
return Value::null;