Skip to content

refactor: remove unused DiskMerklePaymentContract#7

Merged
mickvandijke merged 4 commits intomainfrom
refactor/remove-disk-merkle-contract
Apr 3, 2026
Merged

refactor: remove unused DiskMerklePaymentContract#7
mickvandijke merged 4 commits intomainfrom
refactor/remove-disk-merkle-contract

Conversation

@mickvandijke
Copy link
Copy Markdown
Contributor

Summary

  • Removes DiskMerklePaymentContract, OnChainPaymentInfo, and SmartContractError — all dead code never referenced outside their definitions
  • Cleans up associated imports (PathBuf, thiserror::Error) and re-exports in merkle_payments/mod.rs
  • 203 lines deleted across 2 files

Test plan

  • cargo check passes with no warnings
  • All 25 tests pass (cargo test)

🤖 Generated with Claude Code

mickvandijke and others added 4 commits April 3, 2026 10:25
Dead code: DiskMerklePaymentContract, OnChainPaymentInfo, and
SmartContractError were defined but never referenced outside their
own module. Removes associated imports and re-exports.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
selectWinnerPool uses block.prevrandao and block.timestamp as entropy,
so with 2 pools the second call had ~50% chance of picking the other
pool and succeeding. Use pigeonhole: with N pools, N+1 attempts
guarantee at least one duplicate winner pool hash rejection.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mickvandijke mickvandijke merged commit 82f2fcc into main Apr 3, 2026
7 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