| 353 | } |
| 354 | |
| 355 | bool CWallet::AddCScript(const CScript& redeemScript) |
| 356 | { |
| 357 | if (!CCryptoKeyStore::AddCScript(redeemScript)) |
| 358 | return false; |
| 359 | return WalletBatch(*database).WriteCScript(Hash160(redeemScript), redeemScript); |
| 360 | } |
| 361 | |
| 362 | bool CWallet::LoadCScript(const CScript& redeemScript) |
| 363 | { |