Skip to content

Instantly share code, notes, and snippets.

View mmitech's full-sized avatar
💭
I may be slow to respond.

Mourad Ilyes Mlik mmitech

💭
I may be slow to respond.
View GitHub Profile
@mmitech
mmitech / gist:74a000df9a02895affc5
Last active August 29, 2015 14:27 — forked from genecyber/gist:46a835038221d8e30cfb
Bitpay insight altcoin p2p alt hashing hotfix
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;
}