Skip to content

Commit 4efe47b

Browse files
authored
Rename --subscribe-all-data-column-subnets to --supernode and make it visible in help (#8083)
Rename `--subscribe-all-data-column-subnets` to `--supernode` as it's now been officially accepted in the spec. Also make it visible in help in preparation for the fusaka release. https://github.com/ethereum/consensus-specs/blob/dev/specs/fulu/p2p-interface.md#supernodes Co-Authored-By: Jimmy Chen <[email protected]>
1 parent 78d330e commit 4efe47b

File tree

4 files changed

+29
-8
lines changed

4 files changed

+29
-8
lines changed

beacon_node/src/cli.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,17 @@ pub fn cli_app() -> Command {
4747
* Network parameters.
4848
*/
4949
.arg(
50-
Arg::new("subscribe-all-data-column-subnets")
51-
.long("subscribe-all-data-column-subnets")
50+
Arg::new("supernode")
51+
.long("supernode")
52+
.alias("subscribe-all-data-column-subnets")
5253
.action(ArgAction::SetTrue)
5354
.help_heading(FLAG_HEADER)
54-
.help("Subscribe to all data column subnets and participate in data custody for \
55-
all columns. This will also advertise the beacon node as being long-lived \
56-
subscribed to all data column subnets. \
57-
NOTE: this is an experimental flag and may change any time without notice!")
55+
.help("Run as a voluntary supernode. This node will subscribe to all data column \
56+
subnets, custody all data columns, and perform reconstruction and cross-seeding. \
57+
This requires significantly more bandwidth, storage, and computation requirements but \
58+
the node will have direct access to all blobs via the beacon API and it \
59+
helps network resilience by serving all data columns to syncing peers.")
5860
.display_order(0)
59-
.hide(true)
6061
)
6162
.arg(
6263
// TODO(das): remove this before PeerDAS release

beacon_node/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ pub fn set_network_config(
11621162
config.network_dir = data_dir.join(DEFAULT_NETWORK_DIR);
11631163
};
11641164

1165-
if parse_flag(cli_args, "subscribe-all-data-column-subnets") {
1165+
if parse_flag(cli_args, "supernode") {
11661166
config.subscribe_all_data_column_subnets = true;
11671167
}
11681168

book/src/help_bn.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,13 @@ Flags:
571571
Subscribe to all subnets regardless of validator count. This will also
572572
advertise the beacon node as being long-lived subscribed to all
573573
subnets.
574+
--supernode
575+
Run as a voluntary supernode. This node will subscribe to all data
576+
column subnets, custody all data columns, and perform reconstruction
577+
and cross-seeding. This requires significantly more bandwidth,
578+
storage, and computation requirements but the node will have direct
579+
access to all blobs via the beacon API and it helps network resilience
580+
by serving all data columns to syncing peers.
574581
--validator-monitor-auto
575582
Enables the automatic detection and monitoring of validators connected
576583
to the HTTP API and using the subnet subscription endpoint. This

lighthouse/tests/beacon_node.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,19 @@ fn network_subscribe_all_data_column_subnets_flag() {
833833
.with_config(|config| assert!(config.network.subscribe_all_data_column_subnets));
834834
}
835835
#[test]
836+
fn network_supernode_flag() {
837+
CommandLineTest::new()
838+
.flag("supernode", None)
839+
.run_with_zero_port()
840+
.with_config(|config| assert!(config.network.subscribe_all_data_column_subnets));
841+
}
842+
#[test]
843+
fn network_subscribe_all_data_column_subnets_default() {
844+
CommandLineTest::new()
845+
.run_with_zero_port()
846+
.with_config(|config| assert!(!config.network.subscribe_all_data_column_subnets));
847+
}
848+
#[test]
836849
fn blob_publication_batches() {
837850
CommandLineTest::new()
838851
.flag("blob-publication-batches", Some("3"))

0 commit comments

Comments
 (0)