Skip to content

Commit da5151f

Browse files
authored
Merge pull request #21 from dunxen/add-2495
2 parents 873329e + 58f6ed0 commit da5151f

File tree

6 files changed

+35
-8
lines changed

6 files changed

+35
-8
lines changed

Rakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ namespace :posts do
9393

9494
# Set default value for meeting date if not supplied by user.
9595
unless date
96-
date = next_wednesday.to_s
97-
puts "Date set to next Wednesday: #{date}"
96+
date = next_friday.to_s
97+
puts "Date set to next Friday: #{date}"
9898
end
9999

100100
# Ensure meeting date is valid.
@@ -156,8 +156,8 @@ def valid_iso8601_date?(date_string)
156156
yyyy >= Date.today.year && Date.valid_date?(yyyy, mm, dd)
157157
end
158158

159-
def next_wednesday(date = Date.today, wednesday = 3)
160-
date + ((wednesday - date.wday) % 7)
159+
def next_friday(date = Date.today, friday = 5)
160+
date + ((friday - date.wday) % 7)
161161
end
162162

163163
def parse_response(http, pr)

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ author: "LDK PR Review Club contributors"
1313
coordinator: "LDK contributor [dunxen](https://github.com/dunxen)"
1414
coordinator_irc: "dunxen"
1515
description: "A fortnightly review club for LDK PRs"
16-
meeting_day: "Tuesday"
16+
meeting_day: "Friday"
1717
meeting_location: 'the #review-club channel on <a href="https://discord.gg/5AcknnMfBw">our Discord server</a>'
1818
meeting_time: "18:00 UTC"
1919
title: "LDK PR Review Club"

_posts/2023-08-04-#2428.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pr: 2428
66
authors: [waterson]
77
components: ["channel", "ChannelManager"]
88
host: dunxen
9-
status: upcoming
9+
status: past
1010
commit:
1111
---
1212

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
* PR 2495 introduces the `ChannelPhase` enum with variants containing each existing channel struct so that they can be placed in a single map in `PeerState`.
15+
* This was one possible design considered during the conceptual review of the `Channel` split and refactoring work, but seemed to introduce too much complexity at the time
16+
when combined with the `ChannelInterface` type that was considered earlier but later dropped. At this stage it makes sense to take another look at using an enum map going forward
17+
to address some short-comings of the existing (however simple) multi-map approach for `PeerState` channels - one issue being higher order map lookups in a few cases.
18+
19+
## Questions
20+
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)?
21+
1. What are the advantages of having a single map for unfunded and funded channel types per peer? What are the disadvantages?
22+
1. We still want different types to differentiate between different unfunded and funded channels, how do we manage to have three different channel types
23+
in a single `HashMap`?
24+
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
25+
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,
26+
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?
27+
1. What is the current phase of the moon? Please only answer with an emoji.

hosting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ rake posts:new -- -p PR_NUMBER -h HOST_USERNAME -d YYYY-MM-DD
9191

9292
The `-p` (`pr`) and `-h` (`host`) arguments are required. The `-d` (`date`)
9393
argument is optional; if no date is passed the meeting date will be set by default
94-
to next Tuesday.
94+
to next Friday.
9595

9696
The `host` argument is your GitHub username.
9797

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: home
55
### A fortnightly review club for Lightning Dev Kit (LDK) PRs
66

77
<span class="question">What is this?</span> &nbsp;A fortnightly club for reviewing
8-
LDK PRs at **{{ site.meeting_time }} usually every second {{ site.meeting_day }}** in
8+
LDK PRs at **{{ site.meeting_time }} every second {{ site.meeting_day }}** in
99
{{ site.meeting_location }}.
1010

1111
<span class="question">What's it for?</span> &nbsp;To help newer contributors

0 commit comments

Comments
 (0)