lotus/cli
Nagaprasad V R a67e7adf04
refactor: cli: Avoid disputing WindowedPoSt messages when the target miner has no balance to pay rewards (#11800)
In https://github.com/filecoin-project/lotus/issues/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 https://github.com/filecoin-project/lotus/issues/11715
2024-04-10 09:16:04 -05:00
..
clicommands feat: SPTool (#11788) 2024-04-01 10:30:35 -05:00
spcli fix: lmcli: make 'sectors list' DDO-aware (#11839) 2024-04-05 11:39:49 -05:00
util feat: Curio - Easy Migration (#11617) 2024-03-15 16:38:13 -05:00
auth.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
backup.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
chain_test.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
chain.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
client_retr.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
client.go feat: SPTool (#11788) 2024-04-01 10:30:35 -05:00
cmd.go feat: SPTool (#11788) 2024-04-01 10:30:35 -05:00
disputer.go refactor: cli: Avoid disputing WindowedPoSt messages when the target miner has no balance to pay rewards (#11800) 2024-04-10 09:16:04 -05:00
evm.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
filplus.go fix rDataCap datacap (#11811) 2024-04-08 12:06:34 +04:00
helper.go lotus-provider before harmonytask 2023-08-23 18:57:34 -05:00
info.go feat: SPTool (#11788) 2024-04-01 10:30:35 -05:00
init_test.go introduce message prototypes 2021-05-07 15:30:05 +02:00
log.go cli for checking alerts 2021-08-26 15:45:17 +02:00
mocks_test.go chore: fix imports 2022-06-14 17:00:51 +02:00
mpool_manage.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
mpool_test.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
mpool.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
multisig.go feat: SPTool (#11788) 2024-04-01 10:30:35 -05:00
net.go lints and non parallel 2023-11-14 22:58:43 -06:00
params.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
paych.go feat: SPTool (#11788) 2024-04-01 10:30:35 -05:00
pprof.go unexport repo types; use a global var for every repo type 2022-03-03 15:37:23 +01:00
send_test.go feat: SPTool (#11788) 2024-04-01 10:30:35 -05:00
send.go feat: SPTool (#11788) 2024-04-01 10:30:35 -05:00
sending_ui.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
services_send_test.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
services.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
servicesmock_test.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
state.go feat: SPTool (#11788) 2024-04-01 10:30:35 -05:00
status.go implement NodeStatus API 2021-05-07 15:30:04 +02:00
sync_test.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
sync.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
util.go chore: Merge nv22 into master (#11699) 2024-03-12 10:33:58 +01:00
version.go miner: Command to dump all miner info 2020-08-04 20:57:48 +02:00
wait.go add timeout flag to wait-api command 2021-11-02 17:28:11 +00:00
wallet_test.go fix circleci and fiximports 2023-11-13 18:09:11 -06:00
wallet.go feat: SPTool (#11788) 2024-04-01 10:30:35 -05:00