diff --git a/examples/btcdwebsockets/main.go b/examples/btcdwebsockets/main.go index 360f54e5..7e4e765f 100644 --- a/examples/btcdwebsockets/main.go +++ b/examples/btcdwebsockets/main.go @@ -21,11 +21,11 @@ func main() { // for notifications. See the documentation of the btcrpcclient // NotificationHandlers type for more details about each handler. ntfnHandlers := btcrpcclient.NotificationHandlers{ - OnBlockConnected: func(hash *wire.ShaHash, height int32) { - log.Printf("Block connected: %v (%d)", hash, height) + OnBlockConnected: func(hash *wire.ShaHash, height int32, time time.Time) { + log.Printf("Block connected: %v (%d) %v", hash, height, time) }, - OnBlockDisconnected: func(hash *wire.ShaHash, height int32) { - log.Printf("Block disconnected: %v (%d)", hash, height) + OnBlockDisconnected: func(hash *wire.ShaHash, height int32, time time.Time) { + log.Printf("Block disconnected: %v (%d) %v", hash, height, time) }, }