Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

[qctl] support external nodes #106

Merged
merged 4 commits into from
Oct 28, 2020
Merged

Conversation

libby
Copy link
Contributor

@libby libby commented Oct 28, 2020

  • add external_nodes to configyaml used by qctl, so qctl can interact with it,
    e.g. add, delete, ls
  • add support for listing the external nodes in a network:

    qctl ls extnodes --all

  • add support for adding an external node:

    qctl add extnode --enode="enode://[email protected]:7000" --tmurl=http://1.2.3.4:9000 --nodekeyaddr=0x1234334

  • add support deleting external nodes:

    qctl delete external-node

  • allow the external_node Node_Acct_Addr field to be set to a hex without quotes
    or a string hex in the qubernetes yaml. If it is set as a hex without quotes, the hex value will
    be converted to a BigNum, cover both cases in istanbul-validator.toml.erb.
    the yaml parser (https://godoc.org/gopkg.in/yaml.v2) used does not preserve double
    quotes around the hex In place write strips out comments mikefarah/yq#19

libby added 4 commits October 27, 2020 21:51
* add external_nodes to configyaml used by qctl.
* add support for listing the external nodes in a network:
 qctl ls extnodes --all
qctl add extnode --enode=enode://[email protected]:7000 --tmurl=http://1.2.3.4:9000  --nodekeyaddr="0x1234334"

* TODO: find a way to preserve double quotes in gopkg.in/yaml.v2, or use
another yaml parsing library, need to preserve quotes for hex nodekey
address in qubernetes config, or else the hex number is evaluated.
currently wrapping in single quotes (ugly), as this is preserved, e.g.
'"0x92392CAF837B94BC8541D0baE2db41BE2B999F39"'.
* support deleting external nodes:
  qctl delete external-node
* allow external node Node_Acct_Addr to be set as a hex without quotes
or a string hex in the qubernetes yaml. cover both cases in
istanbul-validator.toml.erb.
@libby libby merged commit b022f18 into Consensys:master Oct 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant