livepeer / livepeer/go-livepeer

CLI command to retry PM tickets redemption

Open
#672 3 comments 0 reactions 0 assignees View on GitHub
area: orchestrator QoL status: icebox type: feature
Dominant language
Go
Stars
586
Forks
226
Avg merge
1d 17h
Merged PRs (30d)
19

Description

**Is your feature request related to a problem? Please describe.**
In our current plans O tries to redeem winning tickets upon two triggers:
- Upon end of stream
- Upon node startup

However, what if end of stream redemption failed due to some issue that's been fixed, and the node operator wants to retry ticket redemption without having to take the node down?

An option to do so from the CLI should be helpful.

**Describe the solution you'd like**
A CLI command that would make a request to the node to kick off the process of trying to redeem all tickets that haven't been redeemed yet.

**Describe alternatives you've considered**
We could consider adding the option to query all the tickets in the CLI, and allowing the user to select specific tickets to redeem, but at this point not sure that's needed.

**Additional context**
None.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the existing CLI request path and the node's ticket-redemption flows triggered at stream end and node startup. Add a CLI command that asks the node to retry all unredeemed tickets, then verify that the request reaches the redemption process and handles its result.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.