aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-11-24 18:30:35 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-05-02 15:31:54 +0800
commitecd7199c4367bbffd5000ab6ee9bad3ef88de5d2 (patch)
treecab523810cc7c9fe7b66292fc72b78f7841056fb /cmd/utils
parent1c20313a6a1a35d5f540f878e7c263327c2ccfc1 (diff)
downloadgo-tangerine-ecd7199c4367bbffd5000ab6ee9bad3ef88de5d2.tar
go-tangerine-ecd7199c4367bbffd5000ab6ee9bad3ef88de5d2.tar.gz
go-tangerine-ecd7199c4367bbffd5000ab6ee9bad3ef88de5d2.tar.bz2
go-tangerine-ecd7199c4367bbffd5000ab6ee9bad3ef88de5d2.tar.lz
go-tangerine-ecd7199c4367bbffd5000ab6ee9bad3ef88de5d2.tar.xz
go-tangerine-ecd7199c4367bbffd5000ab6ee9bad3ef88de5d2.tar.zst
go-tangerine-ecd7199c4367bbffd5000ab6ee9bad3ef88de5d2.zip
common/versions, cmd/utils: add geth version contract
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 8d55ac8b9..86e9e9b0d 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -34,6 +34,7 @@ import (
"github.com/ethereum/ethash"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
+ "github.com/ethereum/go-ethereum/common/versions"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/crypto"
@@ -773,6 +774,12 @@ func MakeSystemNode(name, version string, extra []byte, ctx *cli.Context) *node.
}
}
+ err = stack.Register(func(ctx *node.ServiceContext) (node.Service, error) {
+ return versions.NewVersionCheck(ctx)
+ })
+ if err != nil {
+ Fatalf("Failed to register the Version Check service: %v", err)
+ }
return stack
}