rpcclient: Reregister work ntfns on reconnect.

This ensures the rpcclient automatically reregisters for work
notifications on reconnect if it had previously registered for them.
This commit is contained in:
Dave Collins 2020-06-23 11:27:14 -05:00
parent 3baf1f590c
commit e2d77e4e7e
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2

View File

@ -298,6 +298,9 @@ func (c *Client) trackRegisteredNtfns(cmd interface{}) {
} else {
c.ntfnState.notifyNewTx = true
}
case *chainjson.NotifyWorkCmd:
c.ntfnState.notifyWork = true
}
}