File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
main/java/org/hyperledger/besu/cli/options/unstable
java/org/hyperledger/besu/cli/options Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ public void parseBlockPropagationRange(final String arg) {
291291 names = SNAP_SERVER_ENABLED_FLAG ,
292292 hidden = true ,
293293 paramLabel = "<Boolean>" ,
294+ arity = "0..1" ,
294295 description = "Snap sync server enabled (default: ${DEFAULT-VALUE})" )
295296 private Boolean snapsyncServerEnabled = SnapSyncConfiguration .DEFAULT_SNAP_SERVER_ENABLED ;
296297
@@ -362,6 +363,7 @@ public static SynchronizerOptions fromConfig(final SynchronizerConfiguration con
362363 options .snapsyncFlatStorageHealedCountPerRequest =
363364 config .getSnapSyncConfiguration ().getLocalFlatStorageCountToHealPerRequest ();
364365 options .checkpointPostMergeSyncEnabled = config .isCheckpointPostMergeEnabled ();
366+ options .snapsyncServerEnabled = config .getSnapSyncConfiguration ().isSnapServerEnabled ();
365367 return options ;
366368 }
367369
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ protected SynchronizerConfiguration.Builder createCustomizedDomainObject() {
7878 .storageCountPerRequest (SnapSyncConfiguration .DEFAULT_STORAGE_COUNT_PER_REQUEST + 2 )
7979 .bytecodeCountPerRequest (
8080 SnapSyncConfiguration .DEFAULT_BYTECODE_COUNT_PER_REQUEST + 2 )
81+ .isSnapServerEnabled (Boolean .TRUE )
8182 .build ());
8283 }
8384
Original file line number Diff line number Diff line change @@ -217,6 +217,7 @@ receipt-compaction-enabled=true
217217# feature flags
218218Xsecp256k1-native-enabled =false
219219Xaltbn128-native-enabled =false
220+ Xsnapsync-server-enabled =true
220221
221222# compatibility flags
222223compatibility-eth64-forkid-enabled =false
You can’t perform that action at this time.
0 commit comments