marinade-finance / mtransaction

MTX service/client - forwarding TXs from searchers to validators
15 stars 6 forks source link

Make balancer fan out to multiple consumers and multiple copies #39

Closed kronael closed 3 months ago

kronael commented 3 months ago

Current master sends transactions though a single random consumer.

This change makes is so that the transactions are send through multiple consumers, each consumer delivers to a portion of the leader's TPUs. On top of that, it is possible to set N_COPIES > 1 which will send each transction N_COPIES times, from separate consumers.

janlegner commented 3 months ago

Please run cargo fmt on the codebase to ensure standard formatting.

janlegner commented 3 months ago

FYI the master has been updated @kronael

kronael commented 3 months ago

Seems it can be merged now...

kronael commented 3 months ago

If he's a leader he'll send it to himself possibly twice... will think about how to fix that, but should not lower the amount of txs passing through, just add a bit of senseless congestion.