We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f788dc commit daa8680Copy full SHA for daa8680
src/qt/pivx/masternodewizarddialog.cpp
@@ -464,6 +464,7 @@ bool MasterNodeWizardDialog::createMN()
464
465
// For now, collateral key is always inside the wallet
466
std::string error_str;
467
+ walletModel->lockCoin(collateralOut);
468
auto res = mnModel->createDMN(alias,
469
collateralOut,
470
ipAddress,
@@ -476,6 +477,7 @@ bool MasterNodeWizardDialog::createMN()
476
477
(uint16_t) operatorPercentage * 100, // operator percentage
478
operatorPayoutKeyId); // operator payout script
479
if (!res) {
480
+ walletModel->unlockCoin(collateralOut);
481
return errorOut(tr(error_str.c_str()));
482
}
483
0 commit comments