From 3d724b93bf778f60f582c2fdc7b1072d8cbfc3c3 Mon Sep 17 00:00:00 2001 From: levoncrypto Date: Wed, 23 Sep 2026 20:08:04 +0400 Subject: [PATCH] use ACTIVE/BANNED masternode statuses, revoked masternodes are banned --- lib/pages/masternodes/sub_widgets/masternodes_list.dart | 3 +-- lib/wallets/wallet/impl/firo_wallet.dart | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/pages/masternodes/sub_widgets/masternodes_list.dart b/lib/pages/masternodes/sub_widgets/masternodes_list.dart index 6aa200283..085ac2412 100644 --- a/lib/pages/masternodes/sub_widgets/masternodes_list.dart +++ b/lib/pages/masternodes/sub_widgets/masternodes_list.dart @@ -108,8 +108,7 @@ class _MasternodeCard extends StatelessWidget { decoration: BoxDecoration( color: switch (status) { MasternodeStatus.active => stack.accentColorGreen, - MasternodeStatus.banned => stack.accentColorOrange, - MasternodeStatus.revoked => stack.accentColorRed, + MasternodeStatus.banned => stack.accentColorRed, }, borderRadius: BorderRadius.circular(8), ), diff --git a/lib/wallets/wallet/impl/firo_wallet.dart b/lib/wallets/wallet/impl/firo_wallet.dart index 2f1609067..230ba6c65 100644 --- a/lib/wallets/wallet/impl/firo_wallet.dart +++ b/lib/wallets/wallet/impl/firo_wallet.dart @@ -34,8 +34,7 @@ import 'firo_transaction_type.dart'; enum MasternodeStatus { active("ACTIVE"), - banned("BANNED"), - revoked("REVOKED"); + banned("BANNED"); const MasternodeStatus(this.label); @@ -82,8 +81,9 @@ class MasternodeInfo { }); MasternodeStatus get status { - if (revocationReason != 0) return MasternodeStatus.revoked; - if (poseBanHeight != -1) return MasternodeStatus.banned; + if (revocationReason != 0 || poseBanHeight != -1) { + return MasternodeStatus.banned; + } return MasternodeStatus.active; }