Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable juice pricing - Congestion fees #423

Open
mikera opened this issue Oct 4, 2022 · 4 comments
Open

Variable juice pricing - Congestion fees #423

mikera opened this issue Oct 4, 2022 · 4 comments
Labels
enhancement New feature or request
Milestone

Comments

@mikera
Copy link
Member

mikera commented Oct 4, 2022

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 mikera added the enhancement New feature or request label Oct 4, 2022
@mikera mikera added this to the Beta milestone Oct 4, 2022
@helins
Copy link
Member

helins commented Oct 6, 2022

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.

@mikera
Copy link
Member Author

mikera commented Oct 14, 2022

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.

@helins
Copy link
Member

helins commented Oct 15, 2022

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

@mikera
Copy link
Member Author

mikera commented Oct 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants