Skip to content

Instantly share code, notes, and snippets.

View dalslandan200's full-sized avatar

Henrik Johansson dalslandan200

View GitHub Profile
@dalslandan200
dalslandan200 / gist:b6c9efc2aad2c73c980fa1cb51c69612
Created September 21, 2018 15:39 — 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;
}