Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: cli: Avoid disputing WindowedPoSt messages when the target …
…miner has no balance to pay rewards (#11800) In #11703, a user came across an edge case where an SP: 1. Submitted a bad PoSt. 2. Terminated their sectors. 3. Withdrew all funds (after paying all fees). This left the SP's miner actor with a bad proof but without any funds to pay for disputes. On the other hand, given that the sectors have been terminated and termination fees were already paid we don't really care about fining the SP for the bad proofs anyways. But... we still don't want to submit dispute messages in this case because doing so isn't free and doesn't really serve a purpose. So add a check to fetch miner wallet balance and only send disputing messages if balance is non zero. fixes #11715
- Loading branch information