Propagate dynamic BYOC capability prices#3931
Open
its-DeFine wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
*AutoConvertedPricehandles instead of*big.Ratsnapshots.RegisterExternalCapability()to preserve the dynamic price handle created fromprice_per_unit,price_scaling, andcurrency./process/token, and both update after a feed change.Refs #3929.
This is the first working slice for per-capability oracle pricing: BYOC prices now remain live after registration and the gateway-visible token path sees the current price for each requested external capability. It does not yet add separate per-capability oracle/feed selection fields.
Verification
Run inside dedicated PC2 VM
go-livepeer-byoc-usdc-20260509with Go1.26.3and Livepeer-patched FFmpeglibavfilter 10.1.100:Passed:
Previous focused coverage also passed in the same VM:
Also checked broader
go test ./core ./byoc -count=1;./byocpassed, while./corehits existing base-branch failureTestPriceInfo_GivenNilRecipient_ReturnsNilError. Verified the same focused failure exists on base commita78e876ff6c97d935344643c2547d0f84d4b26dd, so it is not introduced by this PR.