From e2d77e4e7efea0ca5278f99af9136e2333d9d186 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 23 Jun 2020 11:27:14 -0500 Subject: [PATCH] rpcclient: Reregister work ntfns on reconnect. This ensures the rpcclient automatically reregisters for work notifications on reconnect if it had previously registered for them. --- rpcclient/infrastructure.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpcclient/infrastructure.go b/rpcclient/infrastructure.go index 0e5e616d..b8bd9cfd 100644 --- a/rpcclient/infrastructure.go +++ b/rpcclient/infrastructure.go @@ -298,6 +298,9 @@ func (c *Client) trackRegisteredNtfns(cmd interface{}) { } else { c.ntfnState.notifyNewTx = true } + + case *chainjson.NotifyWorkCmd: + c.ntfnState.notifyWork = true } }