Skip to content

Select chains by cumulative proof of work#7

Merged
webbananaunite merged 1 commit into
mainfrom
fix/cumulative-work-chain-selection
May 24, 2026
Merged

Select chains by cumulative proof of work#7
webbananaunite merged 1 commit into
mainfrom
fix/cumulative-work-chain-selection

Conversation

@webbananaunite

Copy link
Copy Markdown
Owner

Summary

  • Replace the fixed four-block branch swap rule with cumulative proof-of-work comparison.
  • Keep candidate branches extendable instead of capping them at the old swap depth.
  • Search branch points by their absolute index and add regression tests for chain selection behavior.

Verification

  • swift test --build-path /Users/yoichi/appOutput/blocks
  • /Users/yoichi/.swiftly/bin/swift build -v --swift-sdk x86_64-swift-linux-musl --build-path /Users/yoichi/appOutput/blocks-linux-musl

@webbananaunite webbananaunite merged commit 832a005 into main May 24, 2026
2 checks 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