Skip to content

Commit

Permalink
fix block offsets in printing simulation block number
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed Oct 31, 2018
1 parent 7c0a067 commit 206e510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/mock/simulation/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func logPrinter(testingmode bool, logs []*strings.Builder) func() {
}
for i := 0; i < numLoggers; i++ {
if f != nil {
_, err := f.WriteString(fmt.Sprintf("Begin block %d\n", i))
_, err := f.WriteString(fmt.Sprintf("Begin block %d\n", i+1))
if err != nil {
panic("Failed to write logs to file")
}
Expand All @@ -155,7 +155,7 @@ func logPrinter(testingmode bool, logs []*strings.Builder) func() {
panic("Failed to write logs to file")
}
} else {
fmt.Printf("Begin block %d\n", i)
fmt.Printf("Begin block %d\n", i+1)
fmt.Println((*logs[i]).String())
}
}
Expand Down

0 comments on commit 206e510

Please sign in to comment.