common/versions, cmd/utils: add geth version contract

This commit is contained in:
Gustav Simonsson
2016-05-02 10:31:54 +03:00
committed by Péter Szilágyi
parent 1c20313a6a
commit ecd7199c43
4 changed files with 375 additions and 0 deletions
+1
View File
@@ -530,6 +530,7 @@ func (n *Node) Server() *p2p.Server {
}
// Service retrieves a currently running service registered of a specific type.
// NOTE: must be called with double pointer to service
func (n *Node) Service(service interface{}) error {
n.lock.RLock()
defer n.lock.RUnlock()