@jamesray1 @efynn @mhchia
If I understand correctly, there are
balance[shard_id] for a proposer and they are two different thing.
deposit is used for slashing(if the proposer did misbehave) and
balance is used to pay the collator, so each of them will have their own withdraw function(
proposer_withdraw_balance for balance withdrawal and
release_proposer for deposit withdrawal).
But there are still a few questions left regarding proposer registry/deposit.
- Since proposer’s balance on each shard is a mapping, there’s no way to clean up the proposer’s registry entry(because there’s no way to delete a mapping unless you keep track of which shard the proposer added a balance).
- IIUC there seems to be no slashing condition applicable to proposer(at least for now?). Both
proposal_commitment_slashingand availability slashing are applicable only to collator.