Skip to content

Commit daa8680

Browse files
committed
Fix collateral used as input in ProRegTx
1 parent 1f788dc commit daa8680

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/pivx/masternodewizarddialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,7 @@ bool MasterNodeWizardDialog::createMN()
464464

465465
// For now, collateral key is always inside the wallet
466466
std::string error_str;
467+
walletModel->lockCoin(collateralOut);
467468
auto res = mnModel->createDMN(alias,
468469
collateralOut,
469470
ipAddress,
@@ -476,6 +477,7 @@ bool MasterNodeWizardDialog::createMN()
476477
(uint16_t) operatorPercentage * 100, // operator percentage
477478
operatorPayoutKeyId); // operator payout script
478479
if (!res) {
480+
walletModel->unlockCoin(collateralOut);
479481
return errorOut(tr(error_str.c_str()));
480482
}
481483

0 commit comments

Comments
 (0)