Merge pull request #301 from filecoin-project/feat/pond-expl-tdelta

pond: Show block timestamp deltas
This commit is contained in:
Łukasz Magiera 2019-10-09 09:36:26 +02:00 committed by GitHub
commit 2bbfaf6c72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,9 +123,13 @@ class ChainExplorer extends React.Component {
if(msgc > 0) {
msgc = <b>{msgc}</b>
}
let time = '?'
if(this.state.cache[row - 1]){
time = <span>{ts.Blocks[0].Timestamp - this.state.cache[row - 1].Blocks[0].Timestamp}s</span>
}
info = <span>
<BlockLinks cids={ts.Cids} blocks={ts.Blocks} conn={this.props.client} mountWindow={this.props.mountWindow} /> Msgs: {msgc}
<BlockLinks cids={ts.Cids} blocks={ts.Blocks} conn={this.props.client} mountWindow={this.props.mountWindow} /> Msgs: {msgc} ΔT:{time}
</span>
}