Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui: Add missing switch cases for ALREADY_IN_MEMPOOL #2728

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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