File tree Expand file tree Collapse file tree 4 files changed +29
-8
lines changed Expand file tree Collapse file tree 4 files changed +29
-8
lines changed Original file line number Diff line number Diff line change @@ -47,16 +47,17 @@ pub fn cli_app() -> Command {
47
47
* Network parameters.
48
48
*/
49
49
. 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" )
52
53
. action ( ArgAction :: SetTrue )
53
54
. 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.")
58
60
. display_order ( 0 )
59
- . hide ( true )
60
61
)
61
62
. arg (
62
63
// TODO(das): remove this before PeerDAS release
Original file line number Diff line number Diff line change @@ -1162,7 +1162,7 @@ pub fn set_network_config(
1162
1162
config. network_dir = data_dir. join ( DEFAULT_NETWORK_DIR ) ;
1163
1163
} ;
1164
1164
1165
- if parse_flag ( cli_args, "subscribe-all-data-column-subnets " ) {
1165
+ if parse_flag ( cli_args, "supernode " ) {
1166
1166
config. subscribe_all_data_column_subnets = true ;
1167
1167
}
1168
1168
Original file line number Diff line number Diff line change @@ -571,6 +571,13 @@ Flags:
571
571
Subscribe to all subnets regardless of validator count. This will also
572
572
advertise the beacon node as being long-lived subscribed to all
573
573
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.
574
581
--validator-monitor-auto
575
582
Enables the automatic detection and monitoring of validators connected
576
583
to the HTTP API and using the subnet subscription endpoint. This
Original file line number Diff line number Diff line change @@ -833,6 +833,19 @@ fn network_subscribe_all_data_column_subnets_flag() {
833
833
. with_config ( |config| assert ! ( config. network. subscribe_all_data_column_subnets) ) ;
834
834
}
835
835
#[ 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]
836
849
fn blob_publication_batches ( ) {
837
850
CommandLineTest :: new ( )
838
851
. flag ( "blob-publication-batches" , Some ( "3" ) )
You can’t perform that action at this time.
0 commit comments