mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-12 19:11:01 +00:00
Display location on map node details
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
FeedVersion,
|
||||
Latitude,
|
||||
Longitude,
|
||||
City,
|
||||
NodeId,
|
||||
NodeCount,
|
||||
NodeDetails,
|
||||
@@ -60,7 +61,7 @@ export namespace Variants {
|
||||
|
||||
export interface LocatedNodeMessage extends MessageBase {
|
||||
action: typeof Actions.LocatedNode;
|
||||
payload: [NodeId, Latitude, Longitude];
|
||||
payload: [NodeId, Latitude, Longitude, City];
|
||||
}
|
||||
|
||||
export interface ImportedBlockMessage extends MessageBase {
|
||||
|
||||
@@ -6,4 +6,4 @@ import * as FeedMessage from './feed';
|
||||
|
||||
export { Types, FeedMessage };
|
||||
|
||||
export const VERSION: Types.FeedVersion = 4 as Types.FeedVersion;
|
||||
export const VERSION: Types.FeedVersion = 5 as Types.FeedVersion;
|
||||
|
||||
@@ -18,8 +18,9 @@ export type PeerCount = Opaque<number, 'PeerCount'>;
|
||||
export type TransactionCount = Opaque<number, 'TransactionCount'>;
|
||||
export type Latitude = Opaque<number, 'Latitude'>;
|
||||
export type Longitude = Opaque<number, 'Longitude'>;
|
||||
export type City = Opaque<string, 'City'>;
|
||||
|
||||
export type BlockDetails = [BlockNumber, BlockHash, Milliseconds, Timestamp, Maybe<PropagationTime>];
|
||||
export type NodeDetails = [NodeName, NodeImplementation, NodeVersion];
|
||||
export type NodeStats = [PeerCount, TransactionCount];
|
||||
export type NodeLocation = [Latitude, Longitude];
|
||||
export type NodeLocation = [Latitude, Longitude, City];
|
||||
|
||||
Reference in New Issue
Block a user