desprout
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
#include "zcbenchmarks.h"
|
||||
#include "script/interpreter.h"
|
||||
#include "zcash/zip32.h"
|
||||
#include "zcash/Note.hpp"
|
||||
#include "notaries_staked.h"
|
||||
|
||||
#include "utiltime.h"
|
||||
|
||||
@@ -346,6 +346,14 @@ bool CWallet::LoadSaplingPaymentAddress(
|
||||
return CCryptoKeyStore::AddSaplingIncomingViewingKey(ivk, addr);
|
||||
}
|
||||
|
||||
bool CWallet::AddCScript(const CScript& redeemScript)
|
||||
{
|
||||
if (!CCryptoKeyStore::AddCScript(redeemScript))
|
||||
return false;
|
||||
if (!fFileBacked)
|
||||
return true;
|
||||
return CWalletDB(strWalletFile).WriteCScript(Hash160(redeemScript), redeemScript);
|
||||
}
|
||||
|
||||
bool CWallet::LoadCScript(const CScript& redeemScript)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user