Skip to content

Change default sync mode from full to light#1004

Merged
yilunzhang merged 1 commit intonknorg:masterfrom
yilunzhang:master
Jun 25, 2025
Merged

Change default sync mode from full to light#1004
yilunzhang merged 1 commit intonknorg:masterfrom
yilunzhang:master

Conversation

@yilunzhang
Copy link
Member

Summary

Changes the default sync mode from "full" to "light" to improve the default node experience.

Changes

  • Modified config/config.go to set default SyncMode to "light" instead of "full"

Benefits

  • Faster blockchain synchronization for new nodes
  • Reduced storage requirements
  • Better default user experience for node operators

Backward Compatibility

  • Existing nodes with explicit sync mode configurations are not affected
  • Users can still override via config file or --sync command line flag
  • All existing sync modes (full, fast, light) remain supported

Test Plan

  • Verified the change compiles successfully
  • Confirmed sync mode validation accepts "light" as valid
  • Tested that default configuration returns "light"
  • Verified IsLightSync() and IsFastSync() methods work correctly

🤖 Generated with Claude Code

This improves the default node experience by enabling faster blockchain
synchronization with reduced storage requirements. Users can still
override this setting via config file or --sync command line flag.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@yilunzhang yilunzhang merged commit 5e9a7fd into nknorg:master Jun 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant