diff --git a/vspd.go b/vspd.go index b9ee11b..d1f8de1 100644 --- a/vspd.go +++ b/vspd.go @@ -94,6 +94,7 @@ func run(ctx context.Context) error { Debug: cfg.WebServerDebug, Designation: cfg.Designation, MaxVoteChangeRecords: maxVoteChangeRecords, + VspdVersion: version.String(), } err = webapi.Start(ctx, shutdownRequestChannel, &shutdownWg, cfg.Listen, db, dcrd, wallets, apiCfg) diff --git a/webapi/homepage.go b/webapi/homepage.go index 0b0b01c..809780e 100644 --- a/webapi/homepage.go +++ b/webapi/homepage.go @@ -35,6 +35,7 @@ type vspStats struct { BlockHeight uint32 NetworkProportion float32 RevokedProportion float32 + VspdVersion string } var statsMtx sync.RWMutex @@ -62,6 +63,7 @@ func initVSPStats() { VspClosed: cfg.VspClosed, Debug: cfg.Debug, Designation: cfg.Designation, + VspdVersion: cfg.VspdVersion, } } diff --git a/webapi/templates/header.html b/webapi/templates/header.html index 4409d05..072b56a 100644 --- a/webapi/templates/header.html +++ b/webapi/templates/header.html @@ -8,9 +8,9 @@ Decred VSP - {{ .VspStats.Designation }} - + - + diff --git a/webapi/webapi.go b/webapi/webapi.go index e7a6176..6f4d102 100644 --- a/webapi/webapi.go +++ b/webapi/webapi.go @@ -35,6 +35,7 @@ type Config struct { Debug bool Designation string MaxVoteChangeRecords int + VspdVersion string } const (