Add version field to GetInfo RPC endpoint
This is inspired by the Bitcoin RPC `getnetworkinfo` endpoint which also includes version information: https://bitcoin.org/en/developer-reference#getnetworkinfo
This commit is contained in:
1 parent
12cb35a6c9
commit
bd398540c1
5 files changed
+358
-339
No files matched your search
@@ -1247,6 +1247,7 @@ func (r *rpcServer) GetInfo(ctx context.Context,
|
||||
Uris: uris,
|
||||
Alias: nodeAnn.Alias.String(),
|
||||
BestHeaderTimestamp: int64(bestHeaderTimestamp),
|
||||
Version: version(),
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user