watchtower-plugin
#102
sr-gi
started this conversation in
Blocked ToDos
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
List of pending improvements / simplifications:
options::Value
does not have an utility function to be casted to it's members (e.g.Value::to_i64
) meaning that options need to be unwrapped and cast or set their corresponding default. This implies a lot of boilerplate:rust-teos/watchtower-plugin/src/main.rs
Lines 602 to 608 in e19bb20
cln-rpc
but we have no way of getting where therpc
file is placed. We could hardcode it but it would be pretty ugly. This can be fixed by reading the corresponding field in thePlugin::configuration
vector, but such field is not in the currently released version ofcln-plugin
(https://github.com/ElementsProject/lightning/blob/d2633d3e6d56bf4594910cffad5b05fe583f72e5/plugins/src/lib.rs#L97).Tor
inlightningd
can be enabled using two options:proxy
andalways-use-proxy
. The former sets what the proxy address is and the later whether to accept clearnet addresses or only "proxied" ones (.onion
). We should be parsing these two options to decide whetherTor
is enabled or not for the plugin too, however, this is also part of the aforementionedconfiguration
vector, and currently we have no access to that. The current workaround is adding a plugin option:watchtower-proxy
Beta Was this translation helpful? Give feedback.
All reactions