Skip to content

fix: create Pool on demand + nullable Transaction.to (combined production fix) - #250

Closed
rickstaa wants to merge 2 commits into
mainfrom
fix/create-or-load-pool-and-nullable-to
Closed

fix: create Pool on demand + nullable Transaction.to (combined production fix)#250
rickstaa wants to merge 2 commits into
mainfrom
fix/create-or-load-pool-and-nullable-to

Conversation

@rickstaa

Copy link
Copy Markdown
Member

Combined production fix — the branch to deploy/verify. Bundles both crash fixes so a resync from genesis clears both:

144056642 comes before 485100965, so both fixes must ship together for a clean resync from genesis.

Supersedes #247 (same combination, but with the inline guard #246 instead of the createOrLoadPool helper #249).

The deterministic root fix for the pool enumeration is tracked in #248.

🤖 Generated with Claude Code

rickstaa added 2 commits July 21, 2026 00:00
Defensive patch. newRound() builds a Pool per active transcoder via a non-deterministic eth_call enumeration that can miss one, leaving reward() to abort on the null Pool and ticketBroker to drop fees. createOrLoadPool() rebuilds the missing Pool on demand in newRound(), reward(), and ticketBroker() so no handler aborts.

The deterministic root fix is tracked in #248.
Contract-creation txs have no recipient, so `event.transaction.to` is null and
graph-node aborted on the non-nullable `Transaction.to`. `null` is the correct
value (matches graph-ts `Address | null`); no mapping change needed.
@coderabbitai

coderabbitai Bot commented Jul 20, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@rickstaa, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 12 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5aacc1df-db02-43b4-99c7-5d0418f888f6

📥 Commits

Reviewing files that changed from the base of the PR and between 2eac27f and 796a532.

📒 Files selected for processing (5)
  • schema.graphql
  • src/mappings/bondingManager.ts
  • src/mappings/roundsManager.ts
  • src/mappings/ticketBroker.ts
  • utils/helpers.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/create-or-load-pool-and-nullable-to

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

🚀 Subgraph Studio preview deployed

Item Details
Version label pr-250-5a2a978-29782604511
Query endpoint https://api.studio.thegraph.com/query/31909/livepeer-ci/pr-250-5a2a978-29782604511
curl -H 'Content-Type: application/json' \
  -d '{"query":"{ protocol(id: \"0\") { inflation } }"}' \
  https://api.studio.thegraph.com/query/31909/livepeer-ci/pr-250-5a2a978-29782604511

@rickstaa rickstaa closed this Aug 3, 2026
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