Skip to content

Comments

Better handler for --fast-sync-min-peers flag#4481

Merged
macfarla merged 7 commits intohyperledger:mainfrom
gfukushima:fast-sync-min-peers-warn
Oct 7, 2022
Merged

Better handler for --fast-sync-min-peers flag#4481
macfarla merged 7 commits intohyperledger:mainfrom
gfukushima:fast-sync-min-peers-warn

Conversation

@gfukushima
Copy link
Contributor

@gfukushima gfukushima commented Oct 5, 2022

PR description

Changes the misleading warn of --fast-sync-min-peers to a more accurate handler which throws a ParameteresException only if this flag is used combined with sync-mode=FULL

Fixed Issue(s)

fixes #4315

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

… any other sync-mode rather than FULL sync

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
…de rather than FULL sync

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
…-peers

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
@gfukushima gfukushima marked this pull request as draft October 5, 2022 12:00
@gfukushima gfukushima marked this pull request as ready for review October 6, 2022 05:52
Copy link
Contributor

@fab-10 fab-10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just add a CHANGELOG entry

@macfarla
Copy link
Contributor

macfarla commented Oct 7, 2022

I don't think it needs a changelog entry - it's more a change to handling incompatible options rather than changing functionality

@macfarla macfarla enabled auto-merge (squash) October 7, 2022 02:18
@macfarla macfarla merged commit 9bc210b into hyperledger:main Oct 7, 2022
@macfarla macfarla added dev experience The build system, things that enable easier development etc. mainnet labels Oct 10, 2022
@gfukushima gfukushima deleted the fast-sync-min-peers-warn branch January 13, 2023 07:08
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
* Change validation for fast-sync-min-peers to allow it to be used with any other sync-mode rather than FULL sync
* Test to ensure fast-sync-min-peers can be used with any other sync-mode rather than FULL sync

Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev experience The build system, things that enable easier development etc. mainnet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Besu logging misleading warning for --

3 participants