mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
lightningd: make invoices insist on payment_secret.
In fact, we make it compulsory, which means if you don't understand it you'll hang up on us! Add some logging for that in future. Changelog-Changed: Protocol: All new invoices require a payment_secret (i.e. modern TLV format onion) Changelog-Changed: Protocol: We can no longer connect to peers which don't support `payment_secret`. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
8f86b45f26
commit
9eb531868f
@@ -20,7 +20,7 @@ def hex_bits(features):
|
||||
|
||||
def expected_peer_features(wumbo_channels=False, extra=[]):
|
||||
"""Return the expected peer features hexstring for this configuration"""
|
||||
features = [1, 5, 7, 9, 11, 13, 15, 17, 27]
|
||||
features = [1, 5, 7, 9, 11, 13, 14, 17, 27]
|
||||
if EXPERIMENTAL_FEATURES:
|
||||
# OPT_ONION_MESSAGES
|
||||
features += [39]
|
||||
@@ -40,7 +40,7 @@ def expected_peer_features(wumbo_channels=False, extra=[]):
|
||||
# features for the 'node' and the 'peer' feature sets
|
||||
def expected_node_features(wumbo_channels=False, extra=[]):
|
||||
"""Return the expected node features hexstring for this configuration"""
|
||||
features = [1, 5, 7, 9, 11, 13, 15, 17, 27, 55]
|
||||
features = [1, 5, 7, 9, 11, 13, 14, 17, 27, 55]
|
||||
if EXPERIMENTAL_FEATURES:
|
||||
# OPT_ONION_MESSAGES
|
||||
features += [39]
|
||||
|
||||
Reference in New Issue
Block a user