Repository navigation
Conversation
go-livepeer's -reward kept the orchestrator key unlocked on the serving machine. The reward caller uses LIP-118 delegation instead: it refuses orchestrator or staked wallets, only broadcasts rewardForTranscoder, and rechecks authorization every pass. The CLI now also checks authorization before simulating a delegated reward call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
A rejected broadcast can discard a reserved-nonce transaction and stall rewards for all orchestrators, while failed status reads can incorrectly make /readyz report readiness without confirmed authorization.
2 open issues
What changed in this PR
Adds a standalone delegated reward caller to Livepeer’s component suite, automating per-round rewards without keeping orchestrator keys unlocked.
Changes:
- Adds sequential reward processing, dedicated-wallet checks, transaction fee replacements, probes, and metrics.
- Checks delegated authorization before manual reward-call simulation.
- Integrates the service into builds, packaging, CLI tests, configuration examples, and documentation.
| File | Description |
|---|---|
rewardcaller/caller.go |
Implements reward decisions, submission, and broadcast policy. |
rewardcaller/app.go |
Adds configuration, polling, wallet checks, and monitoring. |
rewardcaller/app_test.go |
Tests reward outcomes, wallet restrictions, and service behavior. |
README.md |
Lists the new standalone component. |
nodeconfig/config.go |
Normalizes hyphenated component names in environment prefixes. |
Makefile |
Builds the reward-caller binary. |
internal/test/redemptionrpc.go |
Extends the RPC fixture with delegated reward state. |
eth/rewardcaller.go |
Adds dedicated-wallet validation and reward-status reads. |
eth/rewardcaller_test.go |
Tests wallet validation and reward-status helpers. |
docs/reward-caller.md |
Documents setup, operation, probes, and metrics. |
docs/README.md |
Links the reward-caller guide. |
docs/metrics.md |
Lists reward-caller metrics. |
docs/configuration.md |
Documents reward-caller configuration and credentials. |
docs/chain.md |
Explains authorization checks and automated reward calling. |
configs/reward-caller/config.example.toml |
Provides example service settings. |
cmd/livepeer/testdata/cli/reward-caller-help.golden |
Records expected CLI help output. |
cmd/livepeer/testdata/cli/reward-caller-completion-zsh.golden |
Records the Zsh completion snapshot. |
cmd/livepeer/testdata/cli/reward-caller-completion-powershell.golden |
Records the PowerShell completion snapshot. |
cmd/livepeer/testdata/cli/reward-caller-completion-fish.golden |
Records the Fish completion snapshot. |
cmd/livepeer/testdata/cli/reward-caller-completion-bash.golden |
Records the Bash completion snapshot. |
cmd/livepeer/main.go |
Adds reward-caller dispatch, help, and completion routing. |
cmd/livepeer/integration_test.go |
Includes the new binary in CLI integration checks. |
cmd/livepeer/imports_test.go |
Enforces the reward-caller component’s import boundary. |
cmd/livepeer-reward-caller/main.go |
Adds the standalone executable entry point. |
chain/management_test.go |
Tests authorization rejection before simulation. |
chain/actions.go |
Checks authorization for delegated manual rewards. |
.github/workflows/package.yml |
Includes the binary in static-link verification. |
.github/scripts/release-smoke.sh |
Checks the component in release smoke tests. |
.github/scripts/docker-smoke.sh |
Checks the component in container smoke tests. |
.dockerignore |
Includes reward-caller sources in Docker builds. |
Review effort: Balanced
Prepare reserves the next nonce locally, so a transaction the node never received left a gap that blocked every later reward until restart. After a failed send the reward caller now takes the nonce from the node's pending count again. Readiness also ignores failed status reads, which confirm no authorization. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for this! It seems good to me. Ran this through my Codex; findings 2 and 4 seem minor and can probably be ignored if the needed fix is disproportionate to the change (esp for the second) The main blocker is transaction recovery across polls. The binary, dispatcher, and packaging changes look proportionate to adding a standalone service. Review
Where I’d cut lines
|


Adds
livepeer reward-caller, a standalone service that calls reward every round for orchestrators that authorized its wallet withlivepeer chain orchestrator reward-caller set(LIP-118). This replaces go-livepeer's-rewardwithout keeping the orchestrator key unlocked on a machine.Like the standalone redeemer, it refuses a registered or active orchestrator wallet, and also any wallet with bonded stake, at startup, every pass, and before every broadcast. It only broadcasts
rewardForTranscoder, rechecks each orchestrator's authorization every pass, and reads state from chain so restarts need no database.livepeer chain reward call --orchestratornow checks authorization before simulating. Round initialization and a terminal password prompt for the CLI are left for follow-ups