diff options
author | Jimmy Hu <jimmy.hu@dexon.org> | 2018-09-11 13:28:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-11 13:28:44 +0800 |
commit | 582a491aa0bcb784ac7b65ebbfb42139945ea703 (patch) | |
tree | 8589bad986f512455717728012c3d9edf3b68c4f /simulation | |
parent | 2439f49063d8498eadf26d4fa1220c5eac8412a8 (diff) | |
download | tangerine-consensus-582a491aa0bcb784ac7b65ebbfb42139945ea703.tar tangerine-consensus-582a491aa0bcb784ac7b65ebbfb42139945ea703.tar.gz tangerine-consensus-582a491aa0bcb784ac7b65ebbfb42139945ea703.tar.bz2 tangerine-consensus-582a491aa0bcb784ac7b65ebbfb42139945ea703.tar.lz tangerine-consensus-582a491aa0bcb784ac7b65ebbfb42139945ea703.tar.xz tangerine-consensus-582a491aa0bcb784ac7b65ebbfb42139945ea703.tar.zst tangerine-consensus-582a491aa0bcb784ac7b65ebbfb42139945ea703.zip |
core: timestamp (#98)
Diffstat (limited to 'simulation')
-rw-r--r-- | simulation/app.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simulation/app.go b/simulation/app.go index 4bf4aff..5a31273 100644 --- a/simulation/app.go +++ b/simulation/app.go @@ -124,7 +124,7 @@ func (a *simApp) TotalOrderingDeliver(blockHashes common.Hashes, early bool) { for _, block := range blocks { if block.ProposerID == a.ValidatorID { confirmLatency = append(confirmLatency, - now.Sub(block.Timestamps[a.ValidatorID])) + now.Sub(block.Timestamp)) } for hash := range block.Acks { for _, blockHash := range a.getAckedBlocks(hash) { |