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

Continuously request open channel to create a channel at an interval of 1s, and find that the channel cannot be updated to the ready state. #283

Open
15168316096 opened this issue Oct 24, 2024 · 1 comment

Comments

@15168316096
Copy link

Bug Report

Current Behavior

Use the script to continuously request openchannel to create a channel at an interval of 1s, and find that the channel cannot be updated to the ready state.

2024-10-23T09:27:39.868492Z ERROR fnn::fiber::channel: Error while processing channel message: Musig2VerifyError(BadSignature)

Due to this error, the channel status cannot be updated to the final state of CHANNEL_READY. The current status of 100 channels is SIGNING_COMMITMENT.

$ curl --location 'http://127.0.0.1:8227/' --header 'Content-Type: application/json' --data '{
    "id": 42,
    "jsonrpc": "2.0",
    "method": "list_channels",
    "params": [
        {
        }
    ]
}' | jq 'has("CHANNEL_READY")'
  % Total % Received % Xferd Average Speed ​​Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 41192 100 41077 100 115 2399k 6880 --:--:-- --:--:-- --:--:-- 2514k
false

Expected Behavior

Added that when a permanent error is encountered, the channel fails directly.

Environment

  • fiber version: fnn 0.1.0
  • Ckb Chain: testnet
  • Operating system: Ubuntu 20.04
  • Arch: Linux ip-172-31-100-41 6.8.0-1016-aws refactor: change amount from u64 to u128 #17-Ubuntu SMP Mon Sep 2 13:48:07 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • Installation: Built from source

Additional context/Screenshots

node1.log.tar.gz
node2.log.tar.gz
node3.log.tar.gz
script.bash.tar.gz

@contrun
Copy link
Collaborator

contrun commented Oct 24, 2024

Unfortunately, I can't reproduce the error with your script.

2024-10-23T09:27:39.868492Z ERROR fnn::fiber::channel: Error while processing channel message: Musig2VerifyError(BadSignature)

I did reproduce the error in #246

I made a few changes to your script so that I can run it in my devnet. https://github.com/contrun/fiber/tree/Musig2VerifyErrorRepro Just run the vscode task "start 3 nodes (all new)" and then run the script ./tests/Musig2VerifyErrorRepro.sh then I see the error

Signing succeeded: CkbTxUnlockError(TxDep(Other(invalid cell status: "unknown"

I guess we'd better solve #246 first and then minimize the repro.

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

No branches or pull requests

2 participants