Fix PoW mining in mixed PoS/PoW, fix orphaned stake tx
This commit is contained in:
@@ -1358,6 +1358,18 @@ bool CWallet::IsFromMe(const uint256& nullifier) const
|
||||
return false;
|
||||
}
|
||||
|
||||
void CWallet::EraseFromWallet(const uint256 &hash)
|
||||
{
|
||||
if (!fFileBacked)
|
||||
return;
|
||||
{
|
||||
LOCK(cs_wallet);
|
||||
if (mapWallet.erase(hash))
|
||||
CWalletDB(strWalletFile).EraseTx(hash);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
void CWallet::GetNoteWitnesses(std::vector<JSOutPoint> notes,
|
||||
std::vector<boost::optional<ZCIncrementalWitness>>& witnesses,
|
||||
uint256 &final_anchor)
|
||||
|
||||
Reference in New Issue
Block a user