fix(miner): prime runLoop's ledger cursor with an indexed MAX(seq) lookup - #10259
Conversation
…okup Add EventLedger.latestSeq(), backed by a COALESCE(MAX(seq), 0) statement prepared at open time, and have runLoop read it instead of loading and JSON-parsing every row in the ledger just to take the last one's seq.
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-31 14:52:02 UTC
Review summary Nits — 4 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
1 similar comment
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10259 +/- ##
==========================================
+ Coverage 80.60% 80.71% +0.10%
==========================================
Files 283 285 +2
Lines 59101 59434 +333
Branches 7000 7105 +105
==========================================
+ Hits 47641 47974 +333
Misses 11167 11167
Partials 293 293
Flags with carried forward coverage won't be shown. Click here to find out more.
|
fix(miner): prime runLoop's ledger cursor with an indexed MAX(seq) lookup
Add EventLedger.latestSeq(), backed by a COALESCE(MAX(seq), 0) statement prepared at
open time, and have runLoop read it instead of loading and JSON-parsing every row in
the ledger just to take the last one's seq.
Closes #10008