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

Fix/sample oracle and peer connection #202

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

Tibo-lg
Copy link
Contributor

@Tibo-lg Tibo-lg commented Feb 6, 2024

Closes #192

Also added a small test for the sample to avoid that it silently breaks.

@kevkevinpal if by any chance you have time to give it a try it'd be nice to have your feedback to make sure it's working for you.

@Tibo-lg Tibo-lg force-pushed the fix/sample-oracle-and-peer-connection branch 2 times, most recently from f103560 to 2ed0443 Compare February 6, 2024 11:04
@luckysori luckysori self-requested a review February 15, 2024 05:31
@Tibo-lg Tibo-lg force-pushed the fix/sample-oracle-and-peer-connection branch from 2ed0443 to 51734dd Compare February 21, 2024 12:17
Copy link
Collaborator

@luckysori luckysori left a comment

Choose a reason for hiding this comment

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

LGTM, although I haven't tested it.

sample/Readme.md Outdated
@@ -21,6 +21,8 @@ In a different terminal:
cargo run ./examples/configurations/bob.yml
```

Update the [example contract](./examples/contracts/numerical_contract_input.json#L82) replacing the number after `btcusd` with a unix timestamp sometimes in the future (this will correspond to the contract maturity date).
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Update the [example contract](./examples/contracts/numerical_contract_input.json#L82) replacing the number after `btcusd` with a unix timestamp sometimes in the future (this will correspond to the contract maturity date).
Update the [example contract](./examples/contracts/numerical_contract_input.json#L82) replacing the number after `btcusd` with a unix timestamp some time in the future (this will correspond to the contract maturity date).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks fixed.

Comment on lines +132 to +135
println!(
"Node public key: {}",
km.get_node_id(lightning::sign::Recipient::Node).unwrap()
);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh yeah, this is that sneaky bug fix you mentioned a while ago.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, wasted way to much time on that...

@Tibo-lg Tibo-lg force-pushed the fix/sample-oracle-and-peer-connection branch from 51734dd to 95f2f12 Compare February 22, 2024 02:40
@Tibo-lg
Copy link
Contributor Author

Tibo-lg commented Feb 22, 2024

LGTM, although I haven't tested it.

Hopefully the test should make sure it's working :)

@Tibo-lg Tibo-lg merged commit cbf38e1 into master Feb 22, 2024
10 checks passed
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.

running sample errors
2 participants