Skip to content

Commit

Permalink
Merge bitcoin#562: Don't blind with blinding factors that aren't ours
Browse files Browse the repository at this point in the history
030811b Don't blind with blinding factors that aren't ours (Steven Roose)

Pull request description:

  Cherry-pick of ElementsProject/elements#231.

Tree-SHA512: 14a2e83891edc244ebc1c5cd9a095c0b4914df72f17462cfca2600f6da208f250cc315e91c2ac9232bd6a5197f2d9854cdfeef6ffafdaf36acc51d555c6c13c7
  • Loading branch information
instagibbs committed Apr 4, 2019
2 parents 07cf0b2 + 030811b commit ec62262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wallet/rpcwallet.cpp
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 ec62262

Please sign in to comment.