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

Feat/periodic check returns affected contracts #121

Open
wants to merge 12 commits into
base: fix/fee-comtputation-issue
Choose a base branch
from

Conversation

sosaucily
Copy link
Contributor

No description provided.

@sosaucily sosaucily changed the base branch from master to fix/fee-comtputation-issue July 10, 2023 14:23
Copy link
Contributor

@Tibo-lg Tibo-lg left a comment

Choose a reason for hiding this comment

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

Concept ack. Just feel like it could be made more simple with a boolean instead of an option. Also unsure what are the changes to the cargo files.

dlc-manager/src/lib.rs Outdated Show resolved Hide resolved
fn check_signed_contract(
&mut self,
contract: &SignedContract,
) -> Result<Option<ContractId>, Error> {
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels like it'd be easier to just return a boolean here, indicating whether the contract was updated or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

smart!!!

@@ -2267,4 +2293,29 @@ mod test {
.on_dlc_message(&offer_message, pubkey())
.expect_err("To reject the second offer message");
}

#[test]
Copy link
Contributor

Choose a reason for hiding this comment

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

that's not a great test, I think it'd be better to add some checks in the integrations tests.

dlc/Cargo.toml Show resolved Hide resolved
simple-wallet/Cargo.toml Show resolved Hide resolved
@Tibo-lg Tibo-lg force-pushed the fix/fee-comtputation-issue branch 2 times, most recently from 2cd5f98 to e9cf8e8 Compare September 7, 2023 07:05
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