-
Notifications
You must be signed in to change notification settings - Fork 15
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
Watchtower get params #373
Conversation
core/src/rpc/watchtower.rs
Outdated
|
||
WinternitzPubkey { | ||
d: operator_index as u32, | ||
n0: timetx_index as u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are incorrect, d and n0 should be the digit and message length, BUT we can get rid of these d and n0 in the proto file as well, since the receiver will know them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in c6dc6aa
core/src/servers.rs
Outdated
|
||
create_watchtower_grpc_server(BridgeConfig { | ||
port: port + i as u16, | ||
verifier_endpoints: Some( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Watchtower server does not need verifier endpoints and operator endpoints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 5b596ea
core/src/watchtower.rs
Outdated
config.network, | ||
); | ||
|
||
let verifier_endpoints = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Watchtower server does not need verifier endpoints and operator endpoints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 1f90746
core/src/watchtower.rs
Outdated
_db, | ||
actor, | ||
index: config.index, | ||
num_operators: config.num_operators as u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are written in config, we can store the config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 1f90746
core/tests/data/test_config.toml
Outdated
@@ -1,6 +1,7 @@ | |||
# Host and port of the current actor (operator or verifier) | |||
# Host, port and index of the current actor (operator or verifier) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(operator, verifier, or watchtower)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in c132f86
Description
Implements
watchtower::get_params
RPC call.Linked Issues
Testing
Added unit tests.