livepeer / protocol

Livepeer protocol
MIT License
154 stars 45 forks source link

Check for non-zero input in setTicketValidityPeriod() #346

Closed yondonfu closed 4 years ago

yondonfu commented 4 years ago

TicketBroker.setTicketValidityPeriod() can require non-zero input in order to prevent the ticket validity period from ever being set to 0 which would mean that tickets are always invalid. In practice, if this mistake is ever made it could be immediately corrected by calling the function with a non-zero value, but adding a require statement can be an added precaution.

yondonfu commented 4 years ago

Closed by #351