Skip to content
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

Merged
merged 14 commits into from
Dec 10, 2024
Merged

Watchtower get params #373

merged 14 commits into from
Dec 10, 2024

Conversation

ceyhunsen
Copy link
Member

@ceyhunsen ceyhunsen commented Dec 9, 2024

Description

Implements watchtower::get_params RPC call.

Linked Issues

Testing

Added unit tests.

@ceyhunsen ceyhunsen changed the base branch from main to dev December 9, 2024 09:02
@ceyhunsen ceyhunsen marked this pull request as ready for review December 10, 2024 07:48
@ceyhunsen ceyhunsen requested a review from ekrembal December 10, 2024 07:48

WinternitzPubkey {
d: operator_index as u32,
n0: timetx_index as u32,
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in c6dc6aa


create_watchtower_grpc_server(BridgeConfig {
port: port + i as u16,
verifier_endpoints: Some(
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 5b596ea

config.network,
);

let verifier_endpoints =
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1f90746

_db,
actor,
index: config.index,
num_operators: config.num_operators as u32,
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 1f90746

@@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(operator, verifier, or watchtower)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in c132f86

@ceyhunsen ceyhunsen requested a review from ekrembal December 10, 2024 09:54
@ceyhunsen ceyhunsen merged commit 8037e9f into dev Dec 10, 2024
9 checks passed
@ceyhunsen ceyhunsen deleted the ceyhun/watchtower_get_params branch December 10, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants