Skip to content

Commit dc8e4c1

Browse files
committed
Remove GetMNCollateralCandidate
1 parent 387e1ae commit dc8e4c1

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/qt/pivx/masternodewizarddialog.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -408,22 +408,6 @@ bool MasterNodeWizardDialog::createMN()
408408
std::string ipAddress = addressStr.toStdString();
409409
std::string port = portStr.toStdString();
410410

411-
// Look for a valid collateral utxo
412-
COutPoint collateralOut;
413-
414-
if (!walletModel->getMNCollateralCandidate(collateralOut)) {
415-
// New receive address
416-
auto r = walletModel->getNewAddress(alias);
417-
if (!r) return errorOut(tr(r.getError().c_str()));
418-
if (!mnModel->createMNCollateral(addressLabel,
419-
QString::fromStdString(r.getObjResult()->ToString()),
420-
collateralOut,
421-
returnStr)) {
422-
// error str set internally
423-
return false;
424-
}
425-
}
426-
427411
if (isDeterministic) {
428412
auto opOwnerAddrAndKeyId = getOrCreateOwnerAddress(alias);
429413
if (!opOwnerAddrAndKeyId.getRes()) {

0 commit comments

Comments
 (0)