#10 added the fee distribution at every block. But we should probably do that less frequently, given that each fee distribution iterate over all validators and executes many bank transfers. Each bank transfer makes 2 writes and generates 1 event, so for 100 validators that makes 200 writes and 100 events, every block!
An other approach can be to distribute fees per epoch. Note that this should done in consideration with the VCS update epoch.
Maybe we could use a single epoch actually, where we distribute the fees AND propagate the VCS change to IBC. In that way, a consumer in debt status is immediately propagated to the consumer chain.
#10 added the fee distribution at every block. But we should probably do that less frequently, given that each fee distribution iterate over all validators and executes many bank transfers. Each bank transfer makes 2 writes and generates 1 event, so for 100 validators that makes 200 writes and 100 events, every block!
An other approach can be to distribute fees per epoch. Note that this should done in consideration with the VCS update epoch.
Maybe we could use a single epoch actually, where we distribute the fees AND propagate the VCS change to IBC. In that way, a consumer in debt status is immediately propagated to the consumer chain.