Skip to content

Commit

Permalink
routing: Added a lower bound of 6 confirmations
Browse files Browse the repository at this point in the history
Otherwise the short `channel-id` may change in a reorg, and
double-spending would allow multiple announcements without added
cost. It also slightly favours resilient channels for transfer
forwarding. Thanks @pm47 for pointing this out.
  • Loading branch information
cdecker committed Nov 17, 2016
1 parent 87f8baa commit 04cf906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 07-routing-gossip.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Upon receiving an announcement the nodes verifies the validity of the announceme
In order to be valid the following conditions MUST be satisfied:

- The timestamp MUST be larger than the last valid announcement from the announcing node.
- The anchor transactions for each channel, identified by the (`blockheight`, `blockindex`)-tuple must have reached at least the configurable minimum number of confirmations.
- The anchor transactions for each channel, identified by the (`blockheight`, `blockindex`)-tuple must have reached at least a minimum number of 6 confirmations. The node MAY require more confirmations before processing and/or forwarding the announcement.
- The signature in the announcement MUST be a valid signature from the public key in the `node_id` field for the message up to the signature itself.
- The announcement MUST have at least on valid channel. The validity of the channel can be verified by inspecting the anchor transaction specified in the announcement.
- If the `expiry` field of any channel is set to `0xFF` then it MUST be the only channel in the announcement.
Expand Down

0 comments on commit 04cf906

Please sign in to comment.