Browse Source

desprout

danger
Duke Leto 4 years ago
parent
commit
5a601d1431
  1. 1
      src/wallet/rpcwallet.cpp
  2. 8
      src/wallet/wallet.cpp

1
src/wallet/rpcwallet.cpp

@ -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"

8
src/wallet/wallet.cpp

@ -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)
{

Loading…
Cancel
Save