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

check CKB amount range when open channel #256

Merged
merged 3 commits into from
Oct 22, 2024

Conversation

chenyukang
Copy link
Collaborator

For issue #252, upgrade ckb-rust-sdk will resolve the issue, but user can not get a proper error message since it's an error handled by auto accept code.

This pr add an extra check to make sure CKB amount is less than u64::max, since we use u128 for all amount considering UDT amount.

@chenyukang chenyukang force-pushed the yukang-fix-ckb-amount-range branch from 6922c0f to 7517427 Compare October 20, 2024 03:22
@chenyukang chenyukang force-pushed the yukang-fix-ckb-amount-range branch from 7517427 to 3d6fa95 Compare October 20, 2024 03:26
src/fiber/network.rs Outdated Show resolved Hide resolved
src/fiber/network.rs Outdated Show resolved Hide resolved
chenyukang and others added 2 commits October 22, 2024 09:12
Co-authored-by: Quake Wang <quake.wang@gmail.com>
Co-authored-by: Quake Wang <quake.wang@gmail.com>
@chenyukang chenyukang force-pushed the yukang-fix-ckb-amount-range branch from f984369 to d25e82e Compare October 22, 2024 01:14
@quake quake merged commit 614affd into nervosnetwork:main Oct 22, 2024
16 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.

2 participants