mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
f "CT: Turn CTxOut::vchNonceCommitment into a CConfidentialCommitment subclass"
This commit is contained in:
parent
3672383a54
commit
d081aeda5e
2 changed files with 2 additions and 2 deletions
|
|
@ -337,7 +337,7 @@ static void MutateTxBlind(CMutableTransaction& tx, const string& strInput)
|
|||
for (size_t nOut = 0; nOut < tx.vout.size(); nOut++) {
|
||||
if (!tx.vout[nOut].nValue.IsExplicit())
|
||||
throw runtime_error("Invalid parameter: transaction outputs must be unblinded");
|
||||
if (tx.vout[nOut].nNonce.vchCommitment.size() == 0) {
|
||||
if (tx.vout[nOut].nNonce.IsNull()) {
|
||||
output_pubkeys.push_back(CPubKey());
|
||||
} else {
|
||||
CPubKey pubkey(tx.vout[nOut].nNonce.vchCommitment);
|
||||
|
|
|
|||
|
|
@ -601,7 +601,7 @@ void FillOutputBlinds(CMutableTransaction& tx, bool fUseWallet, std::vector<uint
|
|||
output_pubkeys.push_back(CPubKey());
|
||||
output_value_blinds.push_back(uint256());
|
||||
output_asset_blinds.push_back(uint256());
|
||||
} else if (tx.vout[nOut].nNonce.vchCommitment.size() == 0) {
|
||||
} else if (tx.vout[nOut].nNonce.IsNull()) {
|
||||
output_pubkeys.push_back(CPubKey());
|
||||
output_value_blinds.push_back(uint256());
|
||||
output_asset_blinds.push_back(uint256());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue