| 155 | } |
| 156 | |
| 157 | bool CWallet::AddCScript(const CScript& redeemScript) |
| 158 | { |
| 159 | if (!CCryptoKeyStore::AddCScript(redeemScript)) |
| 160 | return false; |
| 161 | if (!fFileBacked) |
| 162 | return true; |
| 163 | return CWalletDB(strWalletFile).WriteCScript(Hash160(redeemScript), redeemScript); |
| 164 | } |
| 165 | |
| 166 | bool CWallet::LoadCScript(const CScript& redeemScript) |
| 167 | { |