convex icon indicating copy to clipboard operation
convex copied to clipboard

Variable juice pricing - Congestion fees

Open mikera opened this issue 3 years ago • 4 comments

Juice price should be increased in case of high network load

Considerations:

  • Should probably measure congestion in moving average juice per second
  • Voting by peers undesirable - perverse incentives
  • Needs to be calibrated so that juice becomes expensive before typical peers drop out

mikera avatar Oct 04 '22 13:10 mikera

Juice per second relates to the CVM. However, signature validation is very expensive so the number of transactions and blocks should also be factored in to reflect that.

I.e. for the same amount of juice / sec, a higher volume of transactions will generate more load.

helins avatar Oct 06 '22 09:10 helins

I believe a constant up-front juice per transaction is required to account at least partially for signature cost. This would also encourage bunding more complex / multiple transactions with a single signature.

mikera avatar Oct 14 '22 06:10 mikera

Probably best to factor-in blocks as well. There must be an optimal block size, worst case being blocks with only 1 transaction.

helins avatar Oct 15 '22 13:10 helins

Indeed, there should be a per-block charge to the submitting Peer I think to discourage too many small blocks

mikera avatar Oct 19 '22 21:10 mikera