Conversation
- Add VERIFICATION_PARTITION_COUNT (default: 64) and VERIFICATION_PARTITION_THRESHOLD (default: 70) config - Create verification-partition.ts with partition calculation functions - Assign each node to a partition based on wallet address or random seed - Filter verification workload by partition for low-priority data - High-priority data (>= 70) bypasses partition filtering - Skipped IDs increment retry count to ensure eventual verification - Log partition assignment and verification statistics This reduces verification workload by ~98.4% for low-priority data while ensuring high-priority ArNS data is still verified by all nodes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Thanks for this, and sorry it sat so long. Coming right after #447 lowered the minimum priority so every node verifies all ArNS data, splitting ordinary ArNS verification into partitions is a sensible way to control that cost. Peers only take data from each other when it is marked verified or trusted, so the network as a whole would still hold verified copies of everything. I'm closing it for these reasons:
While measuring what this would save on a production gateway, I found that most of the cost was in the SQL, not in the number of items verified. Marking a root verified ( 🤖 Generated with Claude Code |
Summary
This PR implements partition-based verification filtering to reduce verification workload while ensuring network-wide coverage of all data.
Changes
Configuration
VERIFICATION_PARTITION_COUNT(default: 64) - number of partitions to divide ID spaceVERIFICATION_PARTITION_THRESHOLD(default: 70) - priority threshold for partition filteringPartition Assignment
Verification Filtering
Implementation Details
src/lib/verification-partition.tswith partition calculation functionsBenefits
Testing
Related
🤖 Generated with Claude Code