antIggl / xrpl-unl-manager

Set of scripts to encode/decode and manage Unique Node Lists for XRPL networks.
ISC License
7 stars 5 forks source link

Expiration time for UNL to be user configurable #9

Closed alloynetworks closed 3 years ago

alloynetworks commented 3 years ago

https://github.com/antIggl/xrpl-unl-manager/blob/b9667d3d921ba1b05a5f794e01a679e2a7e48a85/utils.py#L192 is hard coded to 1 year from moment of running. This should be configurable as an argument.

antIggl commented 3 years ago

Nice point @alloynetworks. My initial goal was to create a tool to generate custom UNLs for our testnet, in order to test various connectivity scenarios between validators. Anyway, not an issue, I have already done it.

Expiration date added as argument in all createUNL() function. Defaults to 1 year later. Additionally, encodeUNL.py script can be used to set both expiration date and sequence/version of the UNL. I am closing this issue.