Skip to content

Commit f91eb11

Browse files
authored
Merge 12ff9e2 into 0e7615b
2 parents 0e7615b + 12ff9e2 commit f91eb11

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lightningd/peer_control.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2332,7 +2332,7 @@ static void json_add_peer(struct lightningd *ld,
23322332
/* If peer reports our IP remote_addr, add that here */
23332333
if (p->remote_addr)
23342334
json_add_string(response, "remote_addr",
2335-
fmt_wireaddr(response, p->remote_addr));
2335+
fmt_wireaddr(tmpctx, p->remote_addr));
23362336
}
23372337

23382338
/* Note: If !PEER_CONNECTED, peer may use different features on reconnect */

tests/test_pay.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4437,7 +4437,7 @@ def test_fetchinvoice(node_factory, bitcoind):
44374437
# We remove the conversion plugin on l3, causing it to get upset.
44384438
l1, l2, l3 = node_factory.line_graph(3, wait_for_announce=True,
44394439
opts=[{},
4440-
{},
4440+
{'dev-allow-localhost': None},
44414441
{'broken_log': "plugin-offers: Failed invreq.*Unknown command 'currencyconvert'",
44424442
'dev-allow-localhost': None}])
44434443

@@ -4535,7 +4535,6 @@ def test_fetchinvoice(node_factory, bitcoind):
45354535
'description': 'offer3'})
45364536
l4 = node_factory.get_node()
45374537
l4.rpc.connect(l2.info['id'], 'localhost', l2.port)
4538-
time.sleep(0.25)
45394538
# ... even if we can't find ourselves.
45404539
l4.rpc.call('fetchinvoice', {'offer': offer3['bolt12']})
45414540
# ... even if we know it from gossmap

tests/test_splicing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,15 @@ def test_splice_gossip(node_factory, bitcoind):
9696
wait_for(lambda: only_one(l2.rpc.listpeerchannels(l1.info['id'])['channels'])['state'] == 'CHANNELD_AWAITING_SPLICE')
9797
wait_for(lambda: only_one(l1.rpc.listpeerchannels(l2.info['id'])['channels'])['state'] == 'CHANNELD_AWAITING_SPLICE')
9898

99-
bitcoind.generate_block(6, wait_for_mempool=result['txid'])
99+
bitcoind.generate_block(5, wait_for_mempool=result['txid'])
100100

101101
# l3 will see channel dying, but still consider it OK for 12 blocks.
102102
l3.daemon.wait_for_log(f'gossipd: channel {pre_splice_scid} closing soon due to the funding outpoint being spent')
103103
assert len(l3.rpc.listchannels(short_channel_id=pre_splice_scid)['channels']) == 2
104104
assert len(l3.rpc.listchannels(source=l1.info['id'])['channels']) == 1
105105

106+
# Final one will allow splice announcement to proceed.
107+
bitcoind.generate_block(1)
106108
wait_for(lambda: only_one(l2.rpc.listpeerchannels(l1.info['id'])['channels'])['state'] == 'CHANNELD_NORMAL')
107109
wait_for(lambda: only_one(l1.rpc.listpeerchannels(l2.info['id'])['channels'])['state'] == 'CHANNELD_NORMAL')
108110

0 commit comments

Comments
 (0)