| 381 | } |
| 382 | |
| 383 | bool CWallet::AddCScript(const CScript& redeemScript) |
| 384 | { |
| 385 | if (!CCryptoKeyStore::AddCScript(redeemScript)) |
| 386 | return false; |
| 387 | if (!fFileBacked) |
| 388 | return true; |
| 389 | return CWalletDB(strWalletFile).WriteCScript(Hash160(redeemScript.begin(), redeemScript.end()), redeemScript); |
| 390 | } |
| 391 | |
| 392 | bool fWalletUnlockStakingOnly = false; |
| 393 |