decred / dcrlnd

Decred Lightning Network Daemon ⚡️
MIT License
36 stars 24 forks source link

Verify chainntfs in case of disapproved blocks #69

Open matheusd opened 4 years ago

matheusd commented 4 years ago

The upstream chainntf package doesn't care about transactions that were reversed due to being in disapproved blocks, due to this mechanic not existing in bitcoin.

Generally we need to verify that the chainnfs package is behaving correctly when disapproved blocks are encountered. And more specifically:

matheusd commented 4 years ago

Findings so far (based on the future v0.3 with PR #74 applied):

Alternatives for handling disapproved blocks:

For confirmation ntfn requests:

For spend ntfn requests: