Skip to content
This repository has been archived by the owner on Mar 5, 2020. It is now read-only.

Commit

Permalink
Don't error out with --single even without a seednet-api
Browse files Browse the repository at this point in the history
Fixup display issue.
  • Loading branch information
abourget committed May 9, 2018
1 parent 8e029a2 commit 502a1cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion eos-bios/cmd/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func fetchNetwork(single bool) (*bios.Network, error) {
if seedNetHTTP == "" {
seedNetHTTP = discovery.SeedNetworkHTTPAddress
}
if seedNetHTTP == "" {
if seedNetHTTP == "" && !single {
return nil, fmt.Errorf("missing `seed_network_http_address` and no `--seednet-api` override provided")
}

Expand Down
2 changes: 1 addition & 1 deletion peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ func (p *Peer) String() string {
}

func (p *Peer) Columns() string {
return fmt.Sprintf("%s | %s | %d", p.AccountName(), p.Discovery.TargetAccountName, p.TotalWeight)
return fmt.Sprintf("%s | %s | %d", p.Discovery.SeedNetworkAccountName, p.Discovery.TargetAccountName, p.TotalWeight)
}

0 comments on commit 502a1cb

Please sign in to comment.