From 7cb04ae6db6d10d1716b575485b4802423746c9f Mon Sep 17 00:00:00 2001 From: "John C. Vernaleo" Date: Thu, 18 Jun 2015 16:21:03 -0400 Subject: [PATCH] Update example code. Example code used old api for OnBlockConnected and OnBlockDisconnected --- examples/btcdwebsockets/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) }, }