From a847a460a690935902223818dff00d0be1fc1a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 3 Oct 2019 20:07:16 +0200 Subject: [PATCH] pond: Show block timestamp deltas --- lotuspond/front/src/ChainExplorer.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lotuspond/front/src/ChainExplorer.js b/lotuspond/front/src/ChainExplorer.js index 5aa6dbf06..d395bd331 100644 --- a/lotuspond/front/src/ChainExplorer.js +++ b/lotuspond/front/src/ChainExplorer.js @@ -123,9 +123,13 @@ class ChainExplorer extends React.Component { if(msgc > 0) { msgc = {msgc} } + let time = '?' + if(this.state.cache[row - 1]){ + time = {ts.Blocks[0].Timestamp - this.state.cache[row - 1].Blocks[0].Timestamp}s + } info = - Msgs: {msgc} + Msgs: {msgc} ΔT:{time} }