mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Don't blind with blinding factors that aren't ours
This commit is contained in:
parent
07cf0b218b
commit
030811b8f2
1 changed files with 2 additions and 2 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue