Skip to content

Commit

Permalink
prevent quorum from starting if privacy is enabled and syncmode is no…
Browse files Browse the repository at this point in the history
…t full
  • Loading branch information
nicolae-leonte-go committed May 10, 2022
1 parent ebf7a63 commit 1893e5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -2015,6 +2015,9 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
if cfg.QuorumLightClient.Enabled() && cfg.SyncMode != downloader.FullSync {
Fatalf("Only the 'full' syncmode is supported for the qlight client.")
}
if private.IsQuorumPrivacyEnabled() && cfg.SyncMode != downloader.FullSync {
Fatalf("Only the 'full' syncmode is supported when quorum privacy is enabled.")
}
// End Quorum

if ctx.GlobalIsSet(NetworkIdFlag.Name) {
Expand Down

1 comment on commit 1893e5c

@frank-lim-partior
Copy link
Contributor

@frank-lim-partior frank-lim-partior commented on 1893e5c Oct 18, 2023

Choose a reason for hiding this comment

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

Hi @nicolae-leonte-go, can you describe why snap sync was disabled for Quorum? What if the blockchain state only contained public transactions thus far, or the source node wasn't included in the privateFor of any private transactions?

Please sign in to comment.