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

[r2r] use avg_blocktime from platform/utxo coin for l2/lightning #1606

Merged
merged 2 commits into from
Jan 11, 2023

Conversation

shamardy
Copy link
Collaborator

@shamardy shamardy commented Jan 11, 2023

Since blocktimes in config will be in seconds after this PR KomodoPlatform/coins#573 is merged, lightning can now use the platform coin blocktime for estimating the number of blocks swap payments are locked for.

@shamardy shamardy changed the title use avg_blocktime from platform/utxo coin for l2/lightning [r2r] use avg_blocktime from platform/utxo coin for l2/lightning Jan 11, 2023
artemii235
artemii235 previously approved these changes Jan 11, 2023
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

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

🔥

onur-ozkan
onur-ozkan previously approved these changes Jan 11, 2023
Copy link
Member

@onur-ozkan onur-ozkan left a comment

Choose a reason for hiding this comment

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

One non-blocker minor note, other than that LGTM 🔥

@@ -61,6 +61,7 @@ fn start_lightning_nodes(enable_0_confs: bool) -> (MarketMakerIt, MarketMakerIt,
"estimate_fee_mode": "ECONOMICAL",
"mm2": 1,
"required_confirmations": 0,
"avg_blocktime": 600,
Copy link
Member

Choose a reason for hiding this comment

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

Could you use constant variable for all avg_blocktime fields in this module for same reason as #1601 (comment)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Copy link

@sergeyboyko0791 sergeyboyko0791 left a comment

Choose a reason for hiding this comment

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

LGTM 🔥

Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

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

Re-approving.

@artemii235 artemii235 merged commit b4e06f9 into dev Jan 11, 2023
@artemii235 artemii235 deleted the utxo-l2-avg-blocktime branch January 11, 2023 18:24
@shamardy shamardy mentioned this pull request Feb 17, 2023
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.

4 participants