livepeer / protocol

Livepeer protocol
MIT License
152 stars 45 forks source link

Updates to LIP-36 PR #399

Closed yondonfu closed 4 years ago

yondonfu commented 4 years ago

What does this pull request do? Explain your changes. (required)

Overall diff against streamflow branch.

The BondingManager bytecode size is now 23280. The size can be calculated with the following steps:

npm run compile
cat build/contracts/BondingManager.json | jq '.deployedBytecode' | wc -m | xargs -I {} echo "{} / 2 - 1" | bc

Specific updates (required)

May still be useful to add additional tests, but left that out for now.

How did you test each of these updates (required)

Ran test suite.

Does this pull request close any open issues?

N/A

Checklist:

yondonfu commented 4 years ago

f53c96a Fixes a failing test case related to updating activeCumulativeRewards in updateTranscoderWithFees ab87bf6 Always sets lastFeeRound to the current round since its possible (although unlikely in practice due to the way the client is implemented) for a ticket to be redeemed with round N and then a ticket to be redeemed with round N - 1.

kyriediculous commented 4 years ago

Ran some tests and changes look good to me otherwise , just needs a npm run eslint:fix it seems.