Skip to content

Commit ec62262

Browse files
committed
Merge bitcoin#562: Don't blind with blinding factors that aren't ours
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
2 parents 07cf0b2 + 030811b commit ec62262

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5527,8 +5527,8 @@ UniValue blindrawtransaction(const JSONRPCRequest& request)
55275527
COutPoint prevout = tx.vin[nIn].prevout;
55285528

55295529
std::map<uint256, CWalletTx>::iterator it = pwallet->mapWallet.find(prevout.hash);
5530-
if (it == pwallet->mapWallet.end()) {
5531-
// For inputs we don't own input assetcommitments for the surjection must be supplied
5530+
if (it == pwallet->mapWallet.end() || pwallet->IsMine(tx.vin[nIn]) == ISMINE_NO) {
5531+
// For inputs we don't own, input assetcommitments for the surjection must be supplied.
55325532
if (auxiliary_generators.size() > 0) {
55335533
input_blinds.push_back(uint256());
55345534
input_asset_blinds.push_back(uint256());

0 commit comments

Comments
 (0)