@@ -80,113 +80,113 @@ const (
80
80
)
81
81
82
82
type LivepeerConfig struct {
83
- Network * string
84
- RtmpAddr * string
85
- CliAddr * string
86
- HttpAddr * string
87
- ServiceAddr * string
88
- Nodes * string
89
- OrchAddr * string
90
- VerifierURL * string
91
- EthController * string
92
- VerifierPath * string
93
- LocalVerify * bool
94
- HttpIngest * bool
95
- Orchestrator * bool
96
- Transcoder * bool
97
- AIServiceRegistry * bool
98
- AIWorker * bool
99
- Gateway * bool
100
- Broadcaster * bool
101
- OrchSecret * string
102
- TranscodingOptions * string
103
- AIModels * string
104
- MaxAttempts * int
105
- SelectRandWeight * float64
106
- SelectStakeWeight * float64
107
- SelectPriceWeight * float64
108
- SelectPriceExpFactor * float64
109
- OrchPerfStatsURL * string
110
- Region * string
111
- MaxPricePerUnit * string
112
- MaxPricePerCapability * string
113
- IgnoreMaxPriceIfNeeded * bool
114
- MinPerfScore * float64
115
- DiscoveryTimeout * time.Duration
116
- ExtraNodes * int
117
- MaxSessions * string
118
- CurrentManifest * bool
119
- Nvidia * string
120
- Netint * string
121
- HevcDecoding * bool
122
- TestTranscoder * bool
123
- GatewayHost * string
124
- EthAcctAddr * string
125
- EthPassword * string
126
- EthKeystorePath * string
127
- EthOrchAddr * string
128
- EthUrl * string
129
- TxTimeout * time.Duration
130
- MaxTxReplacements * int
131
- GasLimit * int
132
- MinGasPrice * int64
133
- MaxGasPrice * int
134
- InitializeRound * bool
135
- InitializeRoundMaxDelay * time.Duration
136
- TicketEV * string
137
- MaxFaceValue * string
138
- MaxTicketEV * string
139
- MaxTotalEV * string
140
- DepositMultiplier * int
141
- IgnoreSenderReserveRequirements * bool
142
- PricePerUnit * string
143
- PixelsPerUnit * string
144
- PriceFeedAddr * string
145
- AutoAdjustPrice * bool
146
- PricePerGateway * string
147
- PricePerBroadcaster * string
148
- BlockPollingInterval * int
149
- Redeemer * bool
150
- RedeemerAddr * string
151
- Reward * bool
152
- Monitor * bool
153
- MetricsPerStream * bool
154
- MetricsExposeClientIP * bool
155
- MetadataQueueUri * string
156
- MetadataAmqpExchange * string
157
- MetadataPublishTimeout * time.Duration
158
- Datadir * string
159
- AIModelsDir * string
160
- Objectstore * string
161
- Recordstore * string
162
- FVfailGsBucket * string
163
- FVfailGsKey * string
164
- AuthWebhookURL * string
165
- LiveAIAuthWebhookURL * string
166
- LiveAITrickleHostForRunner * string
167
- OrchWebhookURL * string
168
- OrchBlacklist * string
169
- OrchMinLivepeerVersion * string
170
- TestOrchAvail * bool
171
- AIRunnerImage * string
172
- AIRunnerImageOverrides * string
173
- AIVerboseLogs * bool
174
- AIProcessingRetryTimeout * time.Duration
175
- AIRunnerContainersPerGPU * int
176
- AIMinRunnerVersion * string
177
- KafkaBootstrapServers * string
178
- KafkaUsername * string
179
- KafkaPassword * string
180
- KafkaGatewayTopic * string
181
- MediaMTXApiPassword * string
182
- LiveAIAuthApiKey * string
183
- LiveAIHeartbeatURL * string
184
- LiveAIHeartbeatHeaders * string
185
- LiveAIHeartbeatInterval * time.Duration
186
- LivePaymentInterval * time.Duration
187
- LiveOutSegmentTimeout * time.Duration
188
- LiveAICapRefreshModels * string
189
- LiveAISaveNSegments * int
83
+ Network * string
84
+ RtmpAddr * string
85
+ CliAddr * string
86
+ HttpAddr * string
87
+ ServiceAddr * string
88
+ Nodes * string
89
+ OrchAddr * string
90
+ VerifierURL * string
91
+ EthController * string
92
+ VerifierPath * string
93
+ LocalVerify * bool
94
+ HttpIngest * bool
95
+ Orchestrator * bool
96
+ Transcoder * bool
97
+ AIServiceRegistry * bool
98
+ AIWorker * bool
99
+ Gateway * bool
100
+ Broadcaster * bool
101
+ OrchSecret * string
102
+ TranscodingOptions * string
103
+ AIModels * string
104
+ MaxAttempts * int
105
+ SelectRandWeight * float64
106
+ SelectStakeWeight * float64
107
+ SelectPriceWeight * float64
108
+ SelectPriceExpFactor * float64
109
+ OrchPerfStatsURL * string
110
+ Region * string
111
+ MaxPricePerUnit * string
112
+ MaxPricePerCapability * string
113
+ IgnoreMaxPriceIfNeeded * bool
114
+ MinPerfScore * float64
115
+ DiscoveryTimeout * time.Duration
116
+ ExtraNodes * int
117
+ MaxSessions * string
118
+ CurrentManifest * bool
119
+ Nvidia * string
120
+ Netint * string
121
+ HevcDecoding * bool
122
+ TestTranscoder * bool
123
+ GatewayHost * string
124
+ EthAcctAddr * string
125
+ EthPassword * string
126
+ EthKeystorePath * string
127
+ EthOrchAddr * string
128
+ EthUrl * string
129
+ TxTimeout * time.Duration
130
+ MaxTxReplacements * int
131
+ GasLimit * int
132
+ MinGasPrice * int64
133
+ MaxGasPrice * int
134
+ InitializeRound * bool
135
+ InitializeRoundMaxDelay * time.Duration
136
+ TicketEV * string
137
+ MaxFaceValue * string
138
+ MaxTicketEV * string
139
+ MaxTotalEV * string
140
+ DepositMultiplier * int
141
+ IgnoreSenderReserve * bool
142
+ PricePerUnit * string
143
+ PixelsPerUnit * string
144
+ PriceFeedAddr * string
145
+ AutoAdjustPrice * bool
146
+ PricePerGateway * string
147
+ PricePerBroadcaster * string
148
+ BlockPollingInterval * int
149
+ Redeemer * bool
150
+ RedeemerAddr * string
151
+ Reward * bool
152
+ Monitor * bool
153
+ MetricsPerStream * bool
154
+ MetricsExposeClientIP * bool
155
+ MetadataQueueUri * string
156
+ MetadataAmqpExchange * string
157
+ MetadataPublishTimeout * time.Duration
158
+ Datadir * string
159
+ AIModelsDir * string
160
+ Objectstore * string
161
+ Recordstore * string
162
+ FVfailGsBucket * string
163
+ FVfailGsKey * string
164
+ AuthWebhookURL * string
165
+ LiveAIAuthWebhookURL * string
166
+ LiveAITrickleHostForRunner * string
167
+ OrchWebhookURL * string
168
+ OrchBlacklist * string
169
+ OrchMinLivepeerVersion * string
170
+ TestOrchAvail * bool
171
+ AIRunnerImage * string
172
+ AIRunnerImageOverrides * string
173
+ AIVerboseLogs * bool
174
+ AIProcessingRetryTimeout * time.Duration
175
+ AIRunnerContainersPerGPU * int
176
+ AIMinRunnerVersion * string
177
+ KafkaBootstrapServers * string
178
+ KafkaUsername * string
179
+ KafkaPassword * string
180
+ KafkaGatewayTopic * string
181
+ MediaMTXApiPassword * string
182
+ LiveAIAuthApiKey * string
183
+ LiveAIHeartbeatURL * string
184
+ LiveAIHeartbeatHeaders * string
185
+ LiveAIHeartbeatInterval * time.Duration
186
+ LivePaymentInterval * time.Duration
187
+ LiveOutSegmentTimeout * time.Duration
188
+ LiveAICapRefreshModels * string
189
+ LiveAISaveNSegments * int
190
190
}
191
191
192
192
// DefaultLivepeerConfig creates LivepeerConfig exactly the same as when no flags are passed to the livepeer process.
@@ -264,7 +264,7 @@ func DefaultLivepeerConfig() LivepeerConfig {
264
264
defaultMaxPricePerUnit := "0"
265
265
defaultMaxPricePerCapability := ""
266
266
defaultIgnoreMaxPriceIfNeeded := false
267
- defaultIgnoreSenderReserveRequirements := false
267
+ defaultIgnoreSenderReserve := false
268
268
defaultPixelsPerUnit := "1"
269
269
defaultPriceFeedAddr := "0x639Fe6ab55C921f74e7fac1ee960C0B6293ba612" // ETH / USD price feed address on Arbitrum Mainnet
270
270
defaultAutoAdjustPrice := true
@@ -363,41 +363,41 @@ func DefaultLivepeerConfig() LivepeerConfig {
363
363
LiveAIHeartbeatInterval : & defaultLiveAIHeartbeatInterval ,
364
364
365
365
// Onchain:
366
- EthAcctAddr : & defaultEthAcctAddr ,
367
- EthPassword : & defaultEthPassword ,
368
- EthKeystorePath : & defaultEthKeystorePath ,
369
- EthOrchAddr : & defaultEthOrchAddr ,
370
- EthUrl : & defaultEthUrl ,
371
- TxTimeout : & defaultTxTimeout ,
372
- MaxTxReplacements : & defaultMaxTxReplacements ,
373
- GasLimit : & defaultGasLimit ,
374
- MaxGasPrice : & defaultMaxGasPrice ,
375
- EthController : & defaultEthController ,
376
- InitializeRound : & defaultInitializeRound ,
377
- InitializeRoundMaxDelay : & defaultInitializeRoundMaxDelay ,
378
- TicketEV : & defaultTicketEV ,
379
- MaxFaceValue : & defaultMaxFaceValue ,
380
- MaxTicketEV : & defaultMaxTicketEV ,
381
- MaxTotalEV : & defaultMaxTotalEV ,
382
- DepositMultiplier : & defaultDepositMultiplier ,
383
- IgnoreSenderReserveRequirements : & defaultIgnoreSenderReserveRequirements ,
384
- MaxPricePerUnit : & defaultMaxPricePerUnit ,
385
- MaxPricePerCapability : & defaultMaxPricePerCapability ,
386
- IgnoreMaxPriceIfNeeded : & defaultIgnoreMaxPriceIfNeeded ,
387
- PixelsPerUnit : & defaultPixelsPerUnit ,
388
- PriceFeedAddr : & defaultPriceFeedAddr ,
389
- AutoAdjustPrice : & defaultAutoAdjustPrice ,
390
- PricePerGateway : & defaultPricePerGateway ,
391
- PricePerBroadcaster : & defaultPricePerBroadcaster ,
392
- BlockPollingInterval : & defaultBlockPollingInterval ,
393
- Redeemer : & defaultRedeemer ,
394
- RedeemerAddr : & defaultRedeemerAddr ,
395
- Monitor : & defaultMonitor ,
396
- MetricsPerStream : & defaultMetricsPerStream ,
397
- MetricsExposeClientIP : & defaultMetricsExposeClientIP ,
398
- MetadataQueueUri : & defaultMetadataQueueUri ,
399
- MetadataAmqpExchange : & defaultMetadataAmqpExchange ,
400
- MetadataPublishTimeout : & defaultMetadataPublishTimeout ,
366
+ EthAcctAddr : & defaultEthAcctAddr ,
367
+ EthPassword : & defaultEthPassword ,
368
+ EthKeystorePath : & defaultEthKeystorePath ,
369
+ EthOrchAddr : & defaultEthOrchAddr ,
370
+ EthUrl : & defaultEthUrl ,
371
+ TxTimeout : & defaultTxTimeout ,
372
+ MaxTxReplacements : & defaultMaxTxReplacements ,
373
+ GasLimit : & defaultGasLimit ,
374
+ MaxGasPrice : & defaultMaxGasPrice ,
375
+ EthController : & defaultEthController ,
376
+ InitializeRound : & defaultInitializeRound ,
377
+ InitializeRoundMaxDelay : & defaultInitializeRoundMaxDelay ,
378
+ TicketEV : & defaultTicketEV ,
379
+ MaxFaceValue : & defaultMaxFaceValue ,
380
+ MaxTicketEV : & defaultMaxTicketEV ,
381
+ MaxTotalEV : & defaultMaxTotalEV ,
382
+ DepositMultiplier : & defaultDepositMultiplier ,
383
+ IgnoreSenderReserve : & defaultIgnoreSenderReserve ,
384
+ MaxPricePerUnit : & defaultMaxPricePerUnit ,
385
+ MaxPricePerCapability : & defaultMaxPricePerCapability ,
386
+ IgnoreMaxPriceIfNeeded : & defaultIgnoreMaxPriceIfNeeded ,
387
+ PixelsPerUnit : & defaultPixelsPerUnit ,
388
+ PriceFeedAddr : & defaultPriceFeedAddr ,
389
+ AutoAdjustPrice : & defaultAutoAdjustPrice ,
390
+ PricePerGateway : & defaultPricePerGateway ,
391
+ PricePerBroadcaster : & defaultPricePerBroadcaster ,
392
+ BlockPollingInterval : & defaultBlockPollingInterval ,
393
+ Redeemer : & defaultRedeemer ,
394
+ RedeemerAddr : & defaultRedeemerAddr ,
395
+ Monitor : & defaultMonitor ,
396
+ MetricsPerStream : & defaultMetricsPerStream ,
397
+ MetricsExposeClientIP : & defaultMetricsExposeClientIP ,
398
+ MetadataQueueUri : & defaultMetadataQueueUri ,
399
+ MetadataAmqpExchange : & defaultMetadataAmqpExchange ,
400
+ MetadataPublishTimeout : & defaultMetadataPublishTimeout ,
401
401
402
402
// Ingest:
403
403
HttpIngest : & defaultHttpIngest ,
@@ -1018,10 +1018,10 @@ func StartLivepeer(ctx context.Context, cfg LivepeerConfig) {
1018
1018
defer sm .Stop ()
1019
1019
1020
1020
tcfg := pm.TicketParamsConfig {
1021
- EV : ev ,
1022
- RedeemGas : redeemGas ,
1023
- TxCostMultiplier : txCostMultiplier ,
1024
- IgnoreSenderReserveRequirements : * cfg .IgnoreSenderReserveRequirements ,
1021
+ EV : ev ,
1022
+ RedeemGas : redeemGas ,
1023
+ TxCostMultiplier : txCostMultiplier ,
1024
+ IgnoreSenderReserve : * cfg .IgnoreSenderReserve ,
1025
1025
}
1026
1026
n .Recipient , err = pm .NewRecipient (
1027
1027
recipientAddr ,
@@ -1036,7 +1036,7 @@ func StartLivepeer(ctx context.Context, cfg LivepeerConfig) {
1036
1036
glog .Errorf ("Error setting up PM recipient: %v" , err )
1037
1037
return
1038
1038
}
1039
- if * cfg .IgnoreSenderReserveRequirements {
1039
+ if * cfg .IgnoreSenderReserve {
1040
1040
glog .Warning ("Sender reserve requirements disabled; relying on broadcaster deposit to cover ticket face value. Double-spend protection is reduced." )
1041
1041
}
1042
1042
mfv , _ := new (big.Int ).SetString (* cfg .MaxFaceValue , 10 )
0 commit comments