Skip to content

Commit

Permalink
Merge pull request #2728 from jamescowens/add_missing_beacon_already_…
Browse files Browse the repository at this point in the history
…in_mempool

gui: Add missing switch cases for ALREADY_IN_MEMPOOL
  • Loading branch information
jamescowens authored Dec 25, 2023
2 parents 1ab0ec3 + 46ef100 commit 67ab7fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/qt/researcher/researchermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ BeaconStatus MapAdvertiseBeaconError(const BeaconError error)
case BeaconError::PENDING: return BeaconStatus::PENDING;
case BeaconError::TX_FAILED: return BeaconStatus::ERROR_TX_FAILED;
case BeaconError::WALLET_LOCKED: return BeaconStatus::ERROR_WALLET_LOCKED;
}
case BeaconError::ALEADY_IN_MEMPOOL: return BeaconStatus::ALREADY_IN_MEMPOOL;
}

assert(false); // Suppress warning
}
Expand Down Expand Up @@ -150,6 +151,8 @@ QString ResearcherModel::mapBeaconStatus(const BeaconStatus status)
return tr("Beacon expires soon. Renew immediately.");
case BeaconStatus::RENEWAL_POSSIBLE:
return tr("Beacon eligible for renewal.");
case BeaconStatus::ALREADY_IN_MEMPOOL:
return tr("Beacon advertisement transaction already in mempool.");
case BeaconStatus::UNKNOWN:
return tr("Waiting for sync...");
}
Expand Down Expand Up @@ -181,6 +184,7 @@ QIcon ResearcherModel::mapBeaconStatusIcon(const BeaconStatus status) const
case BeaconStatus::PENDING: return make_icon(warning);
case BeaconStatus::RENEWAL_NEEDED: return make_icon(danger);
case BeaconStatus::RENEWAL_POSSIBLE: return make_icon(warning);
case BeaconStatus::ALREADY_IN_MEMPOOL: return make_icon(warning);
case BeaconStatus::UNKNOWN: return make_icon(inactive);
}

Expand Down
1 change: 1 addition & 0 deletions src/qt/researcher/researchermodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ enum class BeaconStatus
PENDING,
RENEWAL_NEEDED,
RENEWAL_POSSIBLE,
ALREADY_IN_MEMPOOL,
UNKNOWN,
};

Expand Down

0 comments on commit 67ab7fb

Please sign in to comment.