fix(explorer): minoxde details page (#1715)

* fix(explorer): minoxde details page

* feat(explorer): add mix_id column in mixnodes list
This commit is contained in:
Pierre Dommerc
2022-10-27 17:16:30 +02:00
committed by GitHub
parent 3ae9ea5de6
commit 8656abcbde
5 changed files with 30 additions and 7 deletions
+1
View File
@@ -24,6 +24,7 @@ pub(crate) enum MixnodeStatus {
pub(crate) struct PrettyDetailedMixNodeBond {
// I leave this to @MS to refactor this type as a lot of things here are redundant thanks to
// the existence of `MixNodeDetails`
pub mix_id: MixId,
pub location: Option<Location>,
pub status: MixnodeStatus,
pub pledge_amount: Coin,
+1
View File
@@ -154,6 +154,7 @@ impl ThreadsafeMixNodesCache {
let rewarding_info = &node.mixnode_details.rewarding_details;
PrettyDetailedMixNodeBond {
mix_id,
location: location.and_then(|l| l.location.clone()),
status: mixnodes_guard.determine_node_status(mix_id),
pledge_amount: truncate_reward(rewarding_info.operator, denom),