@@ -41,7 +41,7 @@ class MNHolder : public FurListRow<QWidget*>
41
41
QString address = index.sibling (index.row (), MNModel::ADDRESS).data (Qt::DisplayRole).toString ();
42
42
QString status = index.sibling (index.row (), MNModel::STATUS).data (Qt::DisplayRole).toString ();
43
43
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 ();
45
45
row->updateView (" Address: " + address, label, status, wasCollateralAccepted, type);
46
46
}
47
47
@@ -194,7 +194,7 @@ void MasterNodesWidget::onEditMNClicked()
194
194
{
195
195
if (walletModel) {
196
196
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 ();
198
198
if (mnType == MNViewType::LEGACY) {
199
199
if (index.sibling (index.row (), MNModel::WAS_COLLATERAL_ACCEPTED).data (Qt::DisplayRole).toBool ()) {
200
200
// Start MN
@@ -320,7 +320,7 @@ void MasterNodesWidget::onInfoMNClicked()
320
320
QString txId = index.sibling (index.row (), MNModel::COLLATERAL_ID).data (Qt::DisplayRole).toString ();
321
321
QString outIndex = index.sibling (index.row (), MNModel::COLLATERAL_OUT_INDEX).data (Qt::DisplayRole).toString ();
322
322
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;
324
324
Optional<DMNData> opDMN = nullopt ;
325
325
if (!isLegacy) {
326
326
QString proTxHash = index.sibling (index.row (), MNModel::PRO_TX_HASH).data (Qt::DisplayRole).toString ();
@@ -360,7 +360,7 @@ void MasterNodesWidget::onDeleteMNClicked()
360
360
QString txId = index.sibling (index.row (), MNModel::COLLATERAL_ID).data (Qt::DisplayRole).toString ();
361
361
QString outIndex = index.sibling (index.row (), MNModel::COLLATERAL_OUT_INDEX).data (Qt::DisplayRole).toString ();
362
362
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;
364
364
365
365
bool convertOK = false ;
366
366
unsigned int indexOut = outIndex.toUInt (&convertOK);
0 commit comments