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
// Sign CAlert with stored private key | |
bool SignAlert(CAlert &alert) | |
{ | |
// key in WIF format | |
const char* pszPrivKey = ""; | |
// serialize alert data | |
CDataStream sMsg(SER_NETWORK, PROTOCOL_VERSION); | |
sMsg << *(CUnsignedAlert*)&alert; | |
alert.vchMsg = std::vector<unsigned char>(sMsg.begin(), sMsg.end()); |
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
<?php | |
// Zcash daemon credentials | |
$rpcuser = ""; | |
$rpcpass = ""; | |
$rpchost = ""; | |
$rpcport = ""; | |
// Wallet addresses for shielding and clearing | |
$t_address = ""; //your t_coinbase address |
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
/* | |
So you need to broadcast an alert... | |
... here's what to do: | |
1. Copy sendalert.cpp into your bitcoind build directory | |
2. Decrypt the alert keys | |
copy the decrypted file as alertkeys.h into the src/ directory. | |
3. Modify the alert parameters in sendalert.cpp |
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; | |
} |
NewerOlder