You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Three sharechain startup behaviors:
auto (default): Wait --startup-timeout seconds (60) for peers to send
shares. If none arrive, enter genesis mode. Prevents accidental forks
during brief network outages while allowing new chains to bootstrap.
genesis: Create new chain immediately. First miner solution becomes
the genesis share (previous_share_hash=null). Use when starting a
private chain or when you are the first node.
wait: Never create genesis. Wait indefinitely for peers with shares.
Use when you know the network exists but peers are temporarily down.
Prevents creating a competing fork during extended outages.
Clear startup logging:
[Sharechain] No shares loaded from storage
[Sharechain] Startup mode: auto
[Sharechain] AUTO MODE — waiting 60s for peers, then genesis if none
[Sharechain] Received shares from peer! best=abc123...
OR:
[Sharechain] No peers found after 60s — entering GENESIS MODE
Qt PageLaunch: startup mode dropdown (auto/genesis/wait) in private
sharechain section. Wired into command preview.
CLI shortcuts: --genesis (alias for --startup-mode genesis),
--wait-for-peers (alias for --startup-mode wait).
0 commit comments