Skip to content

Commit 872b186

Browse files
committed
Add PR2495
1 parent 25218f2 commit 872b186

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

_posts/2023-08-18-#2495.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: pr
3+
date: 2023-08-18
4+
title: "Use a single peer state map for all channel phases in peer state"
5+
pr: 2495
6+
authors: [dunxen]
7+
components: ["channel", "ChannelPhase", "ChannelManager", "PeerState"]
8+
host: dunxen
9+
status: upcoming
10+
commit:
11+
---
12+
13+
## Notes
14+
15+
_Notes to follow soon!_
16+
17+
## Questions
18+
1. Did you review the PR? [Concept ACK, approach ACK, tested ACK, or NACK](https://github.com/lightningdevkit/rust-lightning/blob/master/CONTRIBUTING.md#peer-review)?
19+
1. What are the advantages of having a single map for unfunded and funded channel types per peer? What are the disadvantages?
20+
1. We still want different types to differentiate between different unfunded and funded channels, how do we manage to have (currently) three different channel types
21+
in a single `HashMap`?
22+
1. We'd like to introduce a proper type for channel IDs in LDK, as seen in [PR 2485](https://github.com/lightningdevkit/rust-lightning/pull/2485). If we further differentiate
23+
between channel types, such as having separate types for random V1 `temporary_channel_id`'s, txid-based V1 `channel_id`s, zero-XORed V2 `temporary_channel_id`s, and XORed V2 `channel_id`s,
24+
how would we handle this for keys, or is it best to stick to just using plain `[u8; 32]`s in the `channel_by_id` map?
25+
1. What is the current phase of the moon? Please only answer with an emoji.

0 commit comments

Comments
 (0)