Print version string at startup.

This makes btcwallet match btcd's behavior.

Initially pointed out in:
decred/dcrwallet#125
This commit is contained in:
John C. Vernaleo 2016-03-21 09:27:30 -04:00
parent 5d6392b65d
commit b1500ba02b

View file

@ -47,6 +47,9 @@ func walletMain() error {
cfg = tcfg
defer backendLog.Flush()
// Show version at startup.
log.Infof("Version %s", version())
if cfg.Profile != "" {
go func() {
listenAddr := net.JoinHostPort("", cfg.Profile)