Tweak printouts
@@ -96,11 +96,15 @@ func GetBlockEvents(host string, height uint64, eventType string) {
}
for _, blockEvent := range events {
+ fmt.Printf("Events for Block %s:", blockEvent.BlockID)
printEvents(blockEvent.Events, true)
}
}
func printEvents(events []flow.Event, txID bool) {
+ if len(events) == 0 {
+ fmt.Println(" None")
+ }
// Basic event info printing
for _, event := range events {
fmt.Printf(" Event %d: %s\n", event.EventIndex, event.String())
