mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-13 12:33:04 +02:00
cmd: parse and print account version field
This commit is contained in:
parent
037671287e
commit
28e004ba02
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ type Account struct {
|
|||
ExpirationHeight uint32 `json:"expiration_height"`
|
||||
State string `json:"state"`
|
||||
LatestTxid string `json:"latest_txid"`
|
||||
Version string `json:"version"`
|
||||
}
|
||||
|
||||
// NewAccountFromProto creates a display Account from its proto.
|
||||
|
|
@ -56,6 +57,7 @@ func NewAccountFromProto(a *poolrpc.Account) *Account {
|
|||
ExpirationHeight: a.ExpirationHeight,
|
||||
State: a.State.String(),
|
||||
LatestTxid: latestTxHash.String(),
|
||||
Version: a.Version.String(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue