livepeer / protocol

Livepeer protocol
MIT License
154 stars 45 forks source link

bonding: Add transcoderPoolV2 and deprecate transcoderPool #356

Closed yondonfu closed 4 years ago

yondonfu commented 4 years ago

This PR deprecates the transcoderPool state variable in BondingManager and adds a new transcoderPoolV2 state variable. This change ensures that when the BondingManager implementation is upgraded, we start with a fresh empty pool which addresses some of the V1 -> Streamflow transition issues mentioned in #355. One side effect of this change is that any transcoder that is already in the pool pre-upgrade will have to submit an additional tx to re-enter the pool post-upgrade.

Fixes #355