Set initial_routing_sync in InitFeatures
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 23 Apr 2020 16:47:15 +0000 (09:47 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 29 Apr 2020 18:07:47 +0000 (11:07 -0700)
commit07cea6bfeda1641c2a1440f4e4847c747507c4f0
treedc60679a40c3f76eb4eb1139fe4e0959f9370889
parentc1db30d5be88e312e10efb47e26aade95413a01b
Set initial_routing_sync in InitFeatures

The initial_routing_sync feature is set by peer_handler whenever a full
sync of the network graph is desired. It is not explicitly set when
creating features with InitFeatures::supported().

An upcoming refactor will change supported() to known(), which will
return all features known by the implementation. Thus, the
initial_routing_sync flag will need to be set by default. This commit
makes the behavior change ahead of the refactor.
lightning/src/ln/features.rs
lightning/src/ln/peer_handler.rs
lightning/src/util/test_utils.rs