aboutsummaryrefslogtreecommitdiffstats
path: root/simulation
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-09-11 13:28:44 +0800
committerGitHub <noreply@github.com>2018-09-11 13:28:44 +0800
commit582a491aa0bcb784ac7b65ebbfb42139945ea703 (patch)
tree8589bad986f512455717728012c3d9edf3b68c4f /simulation
parent2439f49063d8498eadf26d4fa1220c5eac8412a8 (diff)
downloadtangerine-consensus-582a491aa0bcb784ac7b65ebbfb42139945ea703.tar.gz
tangerine-consensus-582a491aa0bcb784ac7b65ebbfb42139945ea703.tar.zst
tangerine-consensus-582a491aa0bcb784ac7b65ebbfb42139945ea703.zip
core: timestamp (#98)
Diffstat (limited to 'simulation')
-rw-r--r--simulation/app.go2
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) {