Skip to content

[ADD] Lite Nodes (1/3): Add NodeType and update keeper/helpers

Eridanus (9R) requested to merge 1012-issue-lite-nodes-1 into develop

Related to #1012 (closed)

First PR of at least 3 for Lite Nodes

  • Added concept of NodeType as enum on NodeAccount (0 = Validator, 1 = Lite)
  • Updated relevant Keeper methods to only return Validator NodeAccounts
  • Block Lite NodeAccounts from setting ip address and setting version
  • Update GetRandomNodeAccount test helper func to accept NodeType as well
  • Add tests for new functionality
Edited by Heimdall

Merge request reports