Skip to content

feat: Add capability price selection and refresh logic in remote payment sender#3862

Closed
eliteprox wants to merge 13 commits intoja/remote-signer-ticketsfrom
jm/fix-lv2v-pricing
Closed

feat: Add capability price selection and refresh logic in remote payment sender#3862
eliteprox wants to merge 13 commits intoja/remote-signer-ticketsfrom
jm/fix-lv2v-pricing

Conversation

@eliteprox
Copy link
Collaborator

@eliteprox eliteprox commented Jan 26, 2026

This change adds price selection to the GetOrchestratorInfo requests sent by the RemotePaymentSender within the gateway node. This ensures that offchain go-livepeer gateways can utilize remote signer nodes to request jobs for the live-video-to-video pipeline. RemotePaymentSender is used exclusively by offchain gateways.

  • Implemented selectCapabilityPrice function to choose the appropriate price based on capabilities.
  • Updated RequestPayment method to utilize refreshed orchestrator info and fallback to cached prices when necessary.
  • Added unit tests to verify the new functionality for capability price usage and fallback behavior.

What does this pull request do? Explain your changes. (required)

Fixes capability/constraint pricing for remote signer configured gateways to ensure that are able to request jobs from orchestrators using the correct price.

Specific updates (required)

  • Modifies RemotePaymentSender to use refreshSession to get latest pricing when initializing a new stream
  • Adds helper selectCapabilityPrice to live_payment.go for matching the requested capability/constraint to the orchestrator's advertised pipelines to return the correct price.

How did you test each of these updates (required)

Tested with remote signer node and offchain gateway using the live-video-to-video/noop pipeline which is the default fro whip ingest.

Does this pull request close any open issues?

Fixes issue with gateways configured to use a remote signer being unable to start streams for live-video-to-video pipelines due to "Insufficient Capacity" error

Checklist:

@github-actions github-actions bot added the go Pull requests that update Go code label Jan 26, 2026
@eliteprox eliteprox changed the title Add capability price selection and refresh logic in remote payment se… feat: Add capability price selection and refresh logic in remote payment sender Jan 26, 2026
… info retrieval

- Removed direct calls to getOrchInfo in favor of a new refreshSession method.
- Updated unit tests to mock refreshSession behavior for improved test coverage.
- Ensured that orchestrator info is correctly handled during payment requests.
@j0sh j0sh force-pushed the ja/remote-signer-tickets branch from bb04b97 to 4a5c0c0 Compare January 27, 2026 18:55
@eliteprox eliteprox closed this Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants