Browse Source

option_data_loss_protect: reenable by default

pylightning-async
lisa neigut 6 years ago
committed by Rusty Russell
parent
commit
28699f0eca
  1. 1
      CHANGELOG.md
  2. 2
      common/features.c
  3. 8
      tests/test_connection.py

1
CHANGELOG.md

@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- The `short_channel_id` separator has been changed to be `x` to match the specification.
- JSON API: `listpeers` now includes `funding_allocation_msat`, which returns a map of the amounts initially funded to the channel by each peer, indexed by channel id.
- `option_data_loss_protect` is now enabled by default.
### Deprecated

2
common/features.c

@ -4,9 +4,7 @@
#include <wire/peer_wire.h>
static const u32 our_localfeatures[] = {
#if EXPERIMENTAL_FEATURES
LOCAL_DATA_LOSS_PROTECT,
#endif
LOCAL_INITIAL_ROUTING_SYNC,
LOCAL_GOSSIP_QUERIES
};

8
tests/test_connection.py

@ -1,7 +1,7 @@
from collections import namedtuple
from fixtures import * # noqa: F401,F403
from lightning import RpcError
from utils import DEVELOPER, only_one, wait_for, sync_blockheight, VALGRIND, EXPERIMENTAL_FEATURES
from utils import DEVELOPER, only_one, wait_for, sync_blockheight, VALGRIND
import os
@ -1009,10 +1009,7 @@ def test_forget_channel(node_factory):
def test_peerinfo(node_factory, bitcoind):
l1, l2 = node_factory.line_graph(2, fundchannel=False, opts={'may_reconnect': True})
if EXPERIMENTAL_FEATURES:
lfeatures = '8a'
else:
lfeatures = '88'
lfeatures = '8a'
# Gossiping but no node announcement yet
assert l1.rpc.getpeer(l2.info['id'])['connected']
assert len(l1.rpc.getpeer(l2.info['id'])['channels']) == 0
@ -1255,7 +1252,6 @@ def test_funder_simple_reconnect(node_factory, bitcoind):
@unittest.skipIf(not DEVELOPER, "needs LIGHTNINGD_DEV_LOG_IO")
@unittest.skipIf(not EXPERIMENTAL_FEATURES, "needs option_data_loss_protect")
def test_dataloss_protection(node_factory, bitcoind):
l1 = node_factory.get_node(may_reconnect=True, log_all_io=True,
feerates=(7500, 7500, 7500))

Loading…
Cancel
Save