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

validation rewards #1502

Merged
merged 10 commits into from Oct 3, 2022
Merged

Conversation

baptiste-b-pegasys
Copy link
Contributor

@baptiste-b-pegasys baptiste-b-pegasys commented Sep 12, 2022

Configure a way to get rewards when there is a block validation.
There are 3 modes at the moment:

  • list: you can provide a list a wallet addresses that will be rewarded of the amount of block reward at every validated block
  • besu: compatible with the way besu works
  • validators: all validators will be rewarded of the amount of block reward at every validated block, you don't have to provide the addresses, the list is computed

list

as argument of qbft or program and transition

{
    "config": {
      "qbft": {
          "epoch": 30000,
          "policy": 0,
          "ceil2Nby3Block": 0,
          "beneficiaryMode":"list",
          "beneficiaryList":[
                    "0xed9d02e382b34818e88b88a309c7fe71e65f419d",
                    "0xca843569e3427144cead5e4d5999a3d0ccf92b8e"
          ]
      },
      "transitions": [
        {
          "block":12,
          "beneficiaryMode":"list",
          "beneficiaryList":["0xed9d02e382b34818e88b88a309c7fe71e65f419d"]
        }
      ]
    }
}

@baptiste-b-pegasys baptiste-b-pegasys self-assigned this Sep 12, 2022
@baptiste-b-pegasys baptiste-b-pegasys marked this pull request as ready for review September 27, 2022 14:44
Copy link
Contributor

@achraf17 achraf17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antonydenyer
Copy link
Contributor

Can we change case "besu": to case "single" or something like that?

@antonydenyer antonydenyer merged commit a20cba4 into Consensys:master Oct 3, 2022
@baptiste-b-pegasys baptiste-b-pegasys deleted the feat/qbft-rewards branch January 9, 2023 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants