lnd.xprv/chainntnfs/btcdnotify
Olaoluwa Osuntokun 5044cd6468
chainntnfs/btcdnotify: recognize JSON-RPC error in RegisterSpendNtfn
This commit fixes a prior bug in the logic for registering a new spend
notification. Previously, if the transaction wasn’t found in the
mempool or already confirmed within the chain, then
GetRawTransactionVerbose would return an error which would cause the
function itself to exit with an error.

This issue would then cause the server to be unable to start up as the
breach arbiter would be unable to register for spend notifications for
all the channels that it needed to be watching.

We fix this error simply by recognizing the particular JSON-RPC error
that will be returned in this scenario and treating it as a benign
error.
2017-09-12 17:11:47 +02:00
..
btcd.go chainntnfs/btcdnotify: recognize JSON-RPC error in RegisterSpendNtfn 2017-09-12 17:11:47 +02:00
confheap.go chainntnfs: extend interface test to ensure initial conf height is correct 2017-07-11 17:38:43 -07:00
driver.go multi: switch from btcrpcclient to rpcclient 2017-08-24 18:54:24 -07:00