Skip to content

Commit ba5d76d

Browse files
committed
examples/network-show: Use entity id with active node descriptors
1 parent 7e8b7e0 commit ba5d76d

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

cmd/network/show.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ func prettyPrintEntityNodes(ctx context.Context, npa *common.NPASelection, staki
9393
ID: node,
9494
}
9595

96+
// TODO: Fix eager termination of pretty printing and handle the case
97+
// where node descriptor has already expired, but node status still
98+
// returns as debonding period has not yet passed.
99+
// See: https://github.com/oasisprotocol/cli/issues/707.
96100
nodeStatus, err := registryConn.GetNodeStatus(ctx, idQuery2)
97101
if err != nil {
98102
fmt.Println(" Node is not active")

examples/network-show/id-entity.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
oasis network show xQN6ffLSdc51EfEQ2BzltK1iWYAw6Y1CkBAbFzlhhEQ=
1+
oasis network show UjRo9HS8ho/tkzQZyJ7AD//CqOuH0YvXILKTpmfD3dg=

0 commit comments

Comments
 (0)