ahmedbodi/stratum-mining — pull request #191 by penner42 (2014-01-27 18:19:08+00:00)
Title: submitblock check, remove BLOCK_CHECK_SCRYPT_HASH setting

check for submitblock on init. if wallet has it, use it, otherwise use getblocktemplate submit. if we can't figure it out, try both. maybe this will cut down on an occasional orphan by submitting the block faster. also, trying submitting blocks 5 times before failing.

check both hash_hex and scrypt_hex when confirming block creation. eliminates need for BLOCK_CHECK_SCRYPT_HASH setting.

Sometimes at low difficulties wallet accepts block but then it doesn't show up in listtransactions and isn't in the blockchain. It still gets returned by getblock. Count it as a reject if the hash returned if getblockhash [blockheight returned in getblock hash] is not the same as the hash of the block we created.