Include build type in version

This commit is contained in:
Łukasz Magiera
2020-06-01 20:49:39 +02:00
parent e67253b6a8
commit 64f4e80446
15 changed files with 40 additions and 13 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func Host(mctx helpers.MetricsCtx, lc fx.Lifecycle, params P2PHostIn) (RawHost,
libp2p.Peerstore(params.Peerstore),
libp2p.NoListenAddrs,
libp2p.Ping(true),
libp2p.UserAgent("lotus-" + build.UserVersion),
libp2p.UserAgent("lotus-" + build.UserVersion()),
}
for _, o := range params.Opts {
opts = append(opts, o...)