Skip to content

Commit

Permalink
Fix collateral used as input in ProRegTx
Browse files Browse the repository at this point in the history
  • Loading branch information
panleone committed Jan 8, 2023
1 parent 1f788dc commit daa8680
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qt/pivx/masternodewizarddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ bool MasterNodeWizardDialog::createMN()

// For now, collateral key is always inside the wallet
std::string error_str;
walletModel->lockCoin(collateralOut);
auto res = mnModel->createDMN(alias,
collateralOut,
ipAddress,
Expand All @@ -476,6 +477,7 @@ bool MasterNodeWizardDialog::createMN()
(uint16_t) operatorPercentage * 100, // operator percentage
operatorPayoutKeyId); // operator payout script
if (!res) {
walletModel->unlockCoin(collateralOut);
return errorOut(tr(error_str.c_str()));
}

Expand Down

0 comments on commit daa8680

Please sign in to comment.