diff --git a/signer/core/cliui.go b/signer/core/cliui.go index c41f3de27522..aa1eb7a74fdc 100644 --- a/signer/core/cliui.go +++ b/signer/core/cliui.go @@ -243,7 +243,7 @@ func (ui *CommandlineUI) OnApprovedTx(tx ethapi.SignTransactionResult) { } } -func (ui *CommandlineUI) ShowAccounts() string { +func (ui *CommandlineUI) showAccounts() string { accounts, err := ui.api.ListAccounts(context.Background()) if err != nil { fmt.Print("error listing accounts", err) @@ -264,8 +264,10 @@ func (ui *CommandlineUI) ShowAccounts() string { } func (ui *CommandlineUI) OnSignerStartup(info StartupInfo) { - addresses := ui.ShowAccounts() - fmt.Printf("%s", addresses) + go func() { + addresses := ui.showAccounts() + fmt.Printf("%s", addresses) + }() fmt.Printf("\n------- Signer info -------\n") for k, v := range info.Info { fmt.Printf("* %v : %v\n", k, v)