@@ -41,7 +41,7 @@ class MNHolder : public FurListRow<QWidget*>
4141 QString address = index.sibling (index.row (), MNModel::ADDRESS).data (Qt::DisplayRole).toString ();
4242 QString status = index.sibling (index.row (), MNModel::STATUS).data (Qt::DisplayRole).toString ();
4343 bool wasCollateralAccepted = index.sibling (index.row (), MNModel::WAS_COLLATERAL_ACCEPTED).data (Qt::DisplayRole).toBool ();
44- uint16_t type = index.sibling (index.row (), MNModel::TYPE).data (Qt::DisplayRole).toUInt ();
44+ uint8_t type = index.sibling (index.row (), MNModel::TYPE).data (Qt::DisplayRole).toUInt ();
4545 row->updateView (" Address: " + address, label, status, wasCollateralAccepted, type);
4646 }
4747
@@ -194,7 +194,7 @@ void MasterNodesWidget::onEditMNClicked()
194194{
195195 if (walletModel) {
196196 if (!walletModel->isRegTestNetwork () && !checkMNsNetwork ()) return ;
197- uint16_t mnType = index.sibling (index.row (), MNModel::TYPE).data (Qt::DisplayRole).toUInt ();
197+ uint8_t mnType = index.sibling (index.row (), MNModel::TYPE).data (Qt::DisplayRole).toUInt ();
198198 if (mnType == MNViewType::LEGACY) {
199199 if (index.sibling (index.row (), MNModel::WAS_COLLATERAL_ACCEPTED).data (Qt::DisplayRole).toBool ()) {
200200 // Start MN
@@ -320,7 +320,7 @@ void MasterNodesWidget::onInfoMNClicked()
320320 QString txId = index.sibling (index.row (), MNModel::COLLATERAL_ID).data (Qt::DisplayRole).toString ();
321321 QString outIndex = index.sibling (index.row (), MNModel::COLLATERAL_OUT_INDEX).data (Qt::DisplayRole).toString ();
322322 QString pubKey = index.sibling (index.row (), MNModel::PUB_KEY).data (Qt::DisplayRole).toString ();
323- bool isLegacy = ((uint16_t ) index.sibling (index.row (), MNModel::TYPE).data (Qt::DisplayRole).toUInt ()) == MNViewType::LEGACY;
323+ bool isLegacy = ((uint8_t ) index.sibling (index.row (), MNModel::TYPE).data (Qt::DisplayRole).toUInt ()) == MNViewType::LEGACY;
324324 Optional<DMNData> opDMN = nullopt ;
325325 if (!isLegacy) {
326326 QString proTxHash = index.sibling (index.row (), MNModel::PRO_TX_HASH).data (Qt::DisplayRole).toString ();
@@ -360,7 +360,7 @@ void MasterNodesWidget::onDeleteMNClicked()
360360 QString txId = index.sibling (index.row (), MNModel::COLLATERAL_ID).data (Qt::DisplayRole).toString ();
361361 QString outIndex = index.sibling (index.row (), MNModel::COLLATERAL_OUT_INDEX).data (Qt::DisplayRole).toString ();
362362 QString qAliasString = index.data (Qt::DisplayRole).toString ();
363- bool isLegacy = ((uint16_t ) index.sibling (index.row (), MNModel::TYPE).data (Qt::DisplayRole).toUInt ()) == MNViewType::LEGACY;
363+ bool isLegacy = ((uint8_t ) index.sibling (index.row (), MNModel::TYPE).data (Qt::DisplayRole).toUInt ()) == MNViewType::LEGACY;
364364
365365 bool convertOK = false ;
366366 unsigned int indexOut = outIndex.toUInt (&convertOK);
0 commit comments