Skip to content

Commit

Permalink
fix: PrintGenerationByHeight() was swallowing errors and not printing…
Browse files Browse the repository at this point in the history
… out transactions in a generation
  • Loading branch information
randomshinichi committed Aug 15, 2019
1 parent ebd8af4 commit 8a9f619
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,12 @@ func PrintGenerationByHeight(c getGenerationMicroBlockTransactioner, height uint
}
// go through all the hashes
for _, btx := range r.Transactions {
p, err := c.GetTransactionByHash(fmt.Sprint(btx.Hash))
p, err := c.GetTransactionByHash(fmt.Sprint(*btx.Hash))
if err == nil {
PrintObject("transaction", p)
} else {
fmt.Println("Error in c.GetTransactionByHash", err, btx.Hash)
continue
}
}
}
Expand Down

0 comments on commit 8a9f619

Please sign in to comment.