Skip to content

Commit

Permalink
Restore minttoken by owner for DATs (#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar authored Jun 29, 2022
1 parent 1a61692 commit 9c1cd0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/masternodes/rpc_tokens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -688,10 +688,10 @@ UniValue minttokens(const JSONRPCRequest& request) {
}
if (token->IsDAT()) {
needFoundersAuth = true;
} else {
const Coin& authCoin = ::ChainstateActive().CoinsTip().AccessCoin(COutPoint(token->creationTx, 1)); // always n=1 output
auths.insert(authCoin.out.scriptPubKey);
}
// Get token owner auth if present
const Coin& authCoin = ::ChainstateActive().CoinsTip().AccessCoin(COutPoint(token->creationTx, 1)); // always n=1 output
auths.insert(authCoin.out.scriptPubKey);
}
}
rawTx.vin = GetAuthInputsSmart(pwallet, rawTx.nVersion, auths, needFoundersAuth, optAuthTx, txInputs);
Expand Down

0 comments on commit 9c1cd0a

Please sign in to comment.