Skip to content

Commit

Permalink
hide param
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr committed Sep 30, 2024
1 parent 2086449 commit e61fbac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- Implemented [PostAggregateAndProofsV2](https://ethereum.github.io/beacon-APIs/?urls.primaryName=dev#/Validator/publishAggregateAndProofsV2) (adding support for Electra)
- Added support for [Ephemery Testnet](https://github.com/ephemery.dev) `--network=ephemery`
- Updated bootnodes for Holesky network
- Disabled flood publish behaviour on all p2p subnets. New `--p2p-flood-publish-enabled` parameter can be used to re-enable it, restoring previous behaviour.
- Disabled flood publish behaviour on all p2p subnets. `--Xp2p-flood-publish-enabled` experimental parameter can be used to re-enable it, restoring previous behaviour.
- Add a fix for [CVE-2024-7254](https://avd.aquasec.com/nvd/2024/cve-2024-7254/)
- Updated LUKSO configuration with Deneb fork scheduled for epoch 123075 (November 20, 2024, 16:20:00 UTC)
- Support for `IDONTWANT` libp2p protocol messages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,12 @@ The network interface(s) on which the node listens for P2P communication.
// More about flood publishing
// https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.1.md#flood-publishing
@Option(
names = {"--p2p-flood-publish-enabled"},
names = {"--Xp2p-flood-publish-enabled"},
paramLabel = "<BOOLEAN>",
showDefaultValue = Visibility.ALWAYS,
description = "Enables gossip 'floodPublish' feature",
arity = "0..1",
hidden = true,
fallbackValue = "true")
private boolean floodPublishEnabled = GossipConfig.DEFAULT_FLOOD_PUBLISH_ENABLED;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,21 +349,21 @@ public void floodPublishEnabled_defaultIsSetCorrectly() {
@Test
public void floodPublishEnabled_shouldNotRequireAValue() {
final TekuConfiguration config =
getTekuConfigurationFromArguments("--p2p-flood-publish-enabled");
getTekuConfigurationFromArguments("--Xp2p-flood-publish-enabled");
assertThat(config.network().getGossipConfig().isFloodPublishEnabled()).isTrue();
}

@Test
public void floodPublishEnabled_true() {
final TekuConfiguration config =
getTekuConfigurationFromArguments("--p2p-flood-publish-enabled=true");
getTekuConfigurationFromArguments("--Xp2p-flood-publish-enabled=true");
assertThat(config.network().getGossipConfig().isFloodPublishEnabled()).isTrue();
}

@Test
public void floodPublishEnabled_false() {
final TekuConfiguration config =
getTekuConfigurationFromArguments("--p2p-flood-publish-enabled=false");
getTekuConfigurationFromArguments("--Xp2p-flood-publish-enabled=false");
assertThat(config.network().getGossipConfig().isFloodPublishEnabled()).isFalse();
}

Expand Down

0 comments on commit e61fbac

Please sign in to comment.