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

Decision rules on Sequencer forcing race-mode #50

Closed
danlessa opened this issue Dec 15, 2023 · 4 comments
Closed

Decision rules on Sequencer forcing race-mode #50

danlessa opened this issue Dec 15, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@danlessa
Copy link
Member

Related to #39

@danlessa danlessa added the enhancement New feature or request label Dec 15, 2023
@danlessa danlessa self-assigned this Dec 15, 2023
@danlessa danlessa added question Further information is requested and removed question Further information is requested labels Dec 21, 2023
@jackhack00
Copy link
Contributor

jackhack00 commented Dec 22, 2023

@danlessa
As we already have a treshold for gas cost (which, if current gas price is too high, prevents an actor from doing a transaction), we could do an easy hack for this decision rule:
If the payoff is too low, a Sequencer does not do a commitment bond or a reveal content tx (which forces racemode).
Payoff = Expected_Rewards - Costs (where we can use all current costs + a placeholder_cost )
Imo, this would be very simple, and would let us later add to the placeholder_cost - such as opportunity cost, private reasons for the Sequencer, a more specified decision rule that adds cost, etc.
Up to you though, if there is a better / simpler version to add this I'm fine with it!

@danlessa
Copy link
Member Author

danlessa commented Dec 26, 2023

  • compute payoff for forcing race mode on reveal content phase
  • compute payoff for forcing race mode on commit bond phase
  • force race mode if payoff < 0 on reveal content phase
  • force race mode if payoff < 0 on commit bond phase

@danlessa
Copy link
Member Author

Note: forcing race mode is equivalent to just waiting and do nothing cc @jackhack00

@danlessa
Copy link
Member Author

Implemented by #85

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