Port more required code
This commit is contained in:
@@ -147,7 +147,7 @@ void ThreadNotifyWallets(CBlockIndex *pindexLastTip)
|
||||
// empty root.
|
||||
SaplingMerkleTree oldSaplingTree;
|
||||
if (chainParams.GetConsensus().NetworkUpgradeActive(
|
||||
pindex->pprev->nHeight, Consensus::UPGRADE_SAPLING)) {
|
||||
pindex->pprev->GetHeight(), Consensus::UPGRADE_SAPLING)) {
|
||||
assert(pcoinsTip->GetSaplingAnchorAt(
|
||||
pindex->pprev->hashFinalSaplingRoot, oldSaplingTree));
|
||||
} else {
|
||||
|
||||
@@ -43,6 +43,7 @@ protected:
|
||||
virtual void Inventory(const uint256 &hash) {}
|
||||
virtual void ResendWalletTransactions(int64_t nBestBlockTime) {}
|
||||
virtual void BlockChecked(const CBlock&, const CValidationState&) {}
|
||||
virtual void ResetRequestCount(const uint256 &hash) {};
|
||||
friend void ::RegisterValidationInterface(CValidationInterface*);
|
||||
friend void ::UnregisterValidationInterface(CValidationInterface*);
|
||||
friend void ::UnregisterAllValidationInterfaces();
|
||||
|
||||
@@ -1284,6 +1284,13 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
//void GetScriptForMining(boost::shared_ptr<CReserveScript> &script);
|
||||
void ResetRequestCount(const uint256 &hash)
|
||||
{
|
||||
LOCK(cs_wallet);
|
||||
mapRequestCount[hash] = 0;
|
||||
};
|
||||
|
||||
unsigned int GetKeyPoolSize()
|
||||
{
|
||||
AssertLockHeld(cs_wallet); // setKeyPool
|
||||
|
||||
Reference in New Issue
Block a user