Display block propagation time

This commit is contained in:
maciejhirsz
2018-07-08 16:04:55 +02:00
parent 3259bc67a3
commit 47b80ad30e
10 changed files with 127 additions and 68 deletions
+2 -1
View File
@@ -25,6 +25,7 @@ export default class Node {
public latency = 0 as Types.Milliseconds;
public blockTime = 0 as Types.Milliseconds;
public blockTimestamp = 0 as Types.Timestamp;
public propagationTime: Maybe<Types.PropagationTime> = null;
private peers = 0 as Types.PeerCount;
private txcount = 0 as Types.TransactionCount;
@@ -132,7 +133,7 @@ export default class Node {
}
public blockDetails(): Types.BlockDetails {
return [this.height, this.best, this.blockTime, this.blockTimestamp];
return [this.height, this.best, this.blockTime, this.blockTimestamp, this.propagationTime];
}
public get average(): number {