Bump native bandersnatch#999
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis PR bumps Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/jam/safrole/bandersnatch-vrf.ts`:
- Around line 162-170: The payload length for decoded hashes must be validated
before chunking to avoid partial blobs and out-of-range ticket indexing: in the
batchVerifyTicket flow check that verificationResult.subarray(1).length ===
tickets.length * HASH_SIZE (or at least >= if you intend to tolerate extra
padding) and if it does not match, set isValid = false (or throw) and skip
decoding; reference RESULT_INDEX, ResultValues.Ok,
verificationResult.subarray(1), BytesBlob.chunks, HASH_SIZE, Bytes.fromBlob, and
tickets to locate where to add this length check and early-return/handling.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: a4bfc143-9e4f-47ed-b924-edfe40c4ef96
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (8)
bin/lib/package.jsonpackages/core/crypto/package.jsonpackages/core/erasure-coding/package.jsonpackages/jam/safrole/bandersnatch-vrf.test.tspackages/jam/safrole/bandersnatch-vrf.tspackages/jam/safrole/safrole.test.tspackages/jam/safrole/safrole.tspackages/workers/block-authorship/main.ts
View all
Benchmarks summary: 82/83 OK ❌ |
|
@fluffylabs-bot benchmark |
|
✅ Benchmark workflow triggered successfully! 🎉 🔗 Check the Actions tab for workflow progress. |
Picofuzz Benchmark Resultsfallback
safrole
storage
storage_light
🤖 Automated benchmark |
|
@fluffylabs-bot benchmark |
|
✅ Benchmark workflow triggered successfully! 🎉 🔗 Check the Actions tab for workflow progress. |
with batch ticket verification