Tags: livepeer/subgraph
Tags
fix: compare poll endBlock against L1 block number instead of L2 on A… …rbitrum (#213) Poll tally handlers compared poll.endBlock (L1 scale, ~24M) against event.block.number (L2 scale, ~437M), causing the "poll ended" check to always pass. This prevented voteStake from updating after the initial vote, so stake changes (rewards, bonding, unbonding) during an active poll were never reflected in the tally. Replace event.block.number with getBlockNum() (which calls roundsManager.blockNum() and returns the L1 block number on Arbitrum) so both sides of the comparison are on the same scale. Co-authored-by: Claude Opus 4.6 <[email protected]>