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:
mecampbellsoup committed 2018-04-10 09:27:44 -04:00
1 parent 12cb35a6c9
commit bd398540c1
5 files changed
+358 -339

No files matched your search

+1
View File
@@ -1247,6 +1247,7 @@ func (r *rpcServer) GetInfo(ctx context.Context,
Uris: uris,
Alias: nodeAnn.Alias.String(),
BestHeaderTimestamp: int64(bestHeaderTimestamp),
Version: version(),
}, nil
}