What does this pull request do? Explain your changes. (required)
This pull request adds the pricePerGateway flag and deprecates the pricePerBroadcaster flag per core team decision (details: https://discord.com/channels/423160867534929930/1051963444598943784/1210356864643109004). It adds the new -pricePerGateway flag while maintaining support for -pricePerBroadcaster with a deprecation warning on startup. This change does not address refactoring associated with variable names and types, which will be addressed in a later change.
Specific updates (required)
Updates starter.go and livepeer.go to include the -pricePerGateway flag
Updates the getBroadcasters function to parse the gateways property instead of the broadcasters property.
Adds deprecation warnings to startup and cli help
W0516 11:37:39.563931 97531 starter.go:785] -PricePerBroadcaster flag is deprecated and will be removed in a future release. Please use -PricePerGateway instead
How did you test each of these updates (required)
Started a on-chain orchestrator node using the -pricePerGateway flag
Started a on-chain orchestrator node using the -pricePerBroadcaster flag, noted deprecation warning
Started a on-chain orchestrator node while using the broadcasters property in the config specified in the -pricePerGateway flag, noted deprecation warning.
What does this pull request do? Explain your changes. (required)
This pull request adds the
pricePerGateway
flag and deprecates thepricePerBroadcaster
flag per core team decision (details: https://discord.com/channels/423160867534929930/1051963444598943784/1210356864643109004). It adds the new-pricePerGateway
flag while maintaining support for-pricePerBroadcaster
with a deprecation warning on startup. This change does not address refactoring associated with variable names and types, which will be addressed in a later change.Specific updates (required)
-pricePerGateway
flaggetBroadcasters
function to parse thegateways
property instead of thebroadcasters
property.How did you test each of these updates (required)
-pricePerGateway
flag-pricePerBroadcaster
flag, noted deprecation warningbroadcasters
property in the config specified in the-pricePerGateway
flag, noted deprecation warning.Does this pull request close any open issues?
AI-LIV-358
Checklist:
make
runs successfully./test.sh
pass