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

test collator-selection on rococo #222

Closed
13 tasks done
brenzi opened this issue May 2, 2024 · 2 comments
Closed
13 tasks done

test collator-selection on rococo #222

brenzi opened this issue May 2, 2024 · 2 comments
Assignees

Comments

@brenzi
Copy link
Member

brenzi commented May 2, 2024

Test this PR: polkadot-fellows/runtimes#270

  • upgrade and migration works, injecting invulnerables: producing blocks after mig without changing any keys
  • invulnerables get ROC fees. (accounts must be created to get rewards: send 0.001 ROC)
  • rotate session keys for collators
    • curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params": [] }' http://localhost:9933/
    • setKey (need to wait for next session to take effect...)
    • session.nextKeys is indeed set to new session key for collator01 at next session
  • sync new collator and apply as candidate
    • curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "author_rotateKeys", "params": [] }' http://localhost:9403/ -> 0x14a9ce066467dca785df80d4eebe31d68bd42683a4d304c4c90e20a9d6811d63
    • send 10 ROC to candidate
    • session.setKeys
    • collatorSelection.registerAsCandidate will lock 5 ROC deposit
    • council setDesiredCandidates(3) propose
    • new collator proposes blocks (wait for next session)
@brenzi brenzi self-assigned this May 2, 2024
@brenzi
Copy link
Member Author

brenzi commented May 23, 2024

image

@brenzi
Copy link
Member Author

brenzi commented May 28, 2024

had to remove collator candidate because it missed producing blocks when it should've
re-registering candidacy and waiting for the next session + some time (see collator candidate "first block" which gets set into future
image

@brenzi brenzi closed this as completed May 28, 2024
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

No branches or pull requests

1 participant