Skip to content

Commit 02c559e

Browse files
smartcontract: add changelog entry for mgroup allowlist PDAs
1 parent 771c467 commit 02c559e

3 files changed

Lines changed: 1 addition & 4 deletions

File tree

  • smartcontract/programs/doublezero-serviceability/src/processors/multicastgroup/allowlist

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ All notable changes to this project will be documented in this file.
2424
- Record successful GetConfig gRPC calls to ClickHouse for device telemetry tracking
2525
- Onchain programs
2626
- Enforce that `CloseAccessPass` only closes AccessPass accounts when `connection_count == 0`, preventing closure while active connections are present.
27+
- Move multicast group allowlists from unbounded vecs in AccessPass to dedicated `MGroupAllowlistEntry` PDAs, with self-migration on subscribe
2728
- Monitor
2829
- Add sol-balance watcher to track SOL balances for configured accounts and export Prometheus metrics for alerting
2930
- E2E tests

smartcontract/programs/doublezero-serviceability/src/processors/multicastgroup/allowlist/publisher/add.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ pub fn process_add_multicastgroup_pub_allowlist(
8484
return Err(DoubleZeroError::NotAllowed.into());
8585
}
8686

87-
// Create AccessPass if it doesn't exist (with empty allowlist vecs)
8887
if accesspass_account.data_is_empty() {
8988
let (expected_pda_account, bump_seed) =
9089
get_accesspass_pda(program_id, &value.client_ip, &value.user_payer);
@@ -128,7 +127,6 @@ pub fn process_add_multicastgroup_pub_allowlist(
128127
);
129128
}
130129

131-
// Create the MGroupAllowlistEntry PDA (skip if already exists)
132130
if mgroup_al_entry_account.data_is_empty() {
133131
let (expected_pda, bump_seed) = get_mgroup_allowlist_entry_pda(
134132
program_id,

smartcontract/programs/doublezero-serviceability/src/processors/multicastgroup/allowlist/subscriber/add.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ pub fn process_add_multicastgroup_sub_allowlist(
8585
return Err(DoubleZeroError::NotAllowed.into());
8686
}
8787

88-
// Create AccessPass if it doesn't exist (with empty allowlist vecs)
8988
if accesspass_account.data_is_empty() {
9089
let (expected_pda_account, bump_seed) =
9190
get_accesspass_pda(program_id, &value.client_ip, &value.user_payer);
@@ -129,7 +128,6 @@ pub fn process_add_multicastgroup_sub_allowlist(
129128
);
130129
}
131130

132-
// Create the MGroupAllowlistEntry PDA (skip if already exists)
133131
if mgroup_al_entry_account.data_is_empty() {
134132
let (expected_pda, bump_seed) = get_mgroup_allowlist_entry_pda(
135133
program_id,

0 commit comments

Comments
 (0)