diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 60488023fb39c..fb4cad1958f4c 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -5527,8 +5527,8 @@ UniValue blindrawtransaction(const JSONRPCRequest& request) COutPoint prevout = tx.vin[nIn].prevout; std::map::iterator it = pwallet->mapWallet.find(prevout.hash); - if (it == pwallet->mapWallet.end()) { - // For inputs we don't own input assetcommitments for the surjection must be supplied + if (it == pwallet->mapWallet.end() || pwallet->IsMine(tx.vin[nIn]) == ISMINE_NO) { + // For inputs we don't own, input assetcommitments for the surjection must be supplied. if (auxiliary_generators.size() > 0) { input_blinds.push_back(uint256()); input_asset_blinds.push_back(uint256());