Skip to content

Commit

Permalink
Don't blind with blinding factors that aren't ours
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenroose committed Apr 3, 2019
1 parent 07cf0b2 commit 030811b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wallet/rpcwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5527,8 +5527,8 @@ UniValue blindrawtransaction(const JSONRPCRequest& request)
COutPoint prevout = tx.vin[nIn].prevout;

std::map<uint256, CWalletTx>::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());
Expand Down

0 comments on commit 030811b

Please sign in to comment.