roller icon indicating copy to clipboard operation
roller copied to clipboard

Reduce sampling time of balances when running roller run

Open omritoptix opened this issue 1 year ago • 2 comments

currently it samples every 5 sec which can cause overload on the sampled node. sampling every min for balance is also fine.

omritoptix avatar Aug 24 '23 20:08 omritoptix

disagree here, roller run is intended for local development and fast feedback is handy

ItayLevyOfficial avatar Aug 27 '23 14:08 ItayLevyOfficial

My concern is strictly with the hub balance querying interval.

As I see it the main purpose of the balance is to let the user understand roughly:

  1. if he needs to add more funds
  2. how much does it's rollapp consumes every relevant timeframe.

It is indeed designated for local development but the hub it's working with is not necessarily local (as we see in the testnet/devnet).

Assuming a batch is sent every >= 100s by default (assuming there are txs), not sure why 5 sec is more handy than 1min (as your balance won't change every 5sec)

omritoptix avatar Sep 10 '23 15:09 omritoptix