Created
January 6, 2015 01:02
-
-
Save genecyber/46a835038221d8e30cfb to your computer and use it in GitHub Desktop.
Bitpay insight altcoin p2p alt hashing hotfix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blockHash = bitcoreUtil.formatHashFull(block.calcHash()); | |
var check = blockHash.substring(0, 4); | |
if (check != '0000') { | |
console.log("Scrypt block detected. Falling back to RPC"); | |
self.historicSync.start({forceRPC:1}, function(){ | |
sockets.broadcastSyncInfo(self.historicSync.info()); | |
self.log('[p2p_sync] Done resync.'); | |
}); | |
return; | |
} |
I'm using the bitcore-api version and I've replaced line 85 on Peer_sync.js with the code above, but I don't see the message come up in the console, and the live site still does not update off RPC. Could you steer me in the right direction? Thanks!
strangely its using dat files for me now too haha. >_< weird
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
😵