Open gpBlockchain opened 1 week ago
There could be two problems here.
Sign
message of chain actor is obviously doing a little bit more than just signing the transaction https://github.com/contrun/fiber/blob/ab4203f9eb31fe5c21c5979beeb4ae12fd84c21d/src/ckb/funding/funding_tx.rs#L362-L392. Thus the assumption of Sign
request never fails is false https://github.com/contrun/fiber/blob/ab4203f9eb31fe5c21c5979beeb4ae12fd84c21d/src/fiber/network.rs#L1436 .FundingTxBuilder
seems to be stateless, meaning that even if we've used some cell for a funding transaction, it is still possible for us to use the same transaction. This is exactly https://github.com/nervosnetwork/fiber/issues/74 . I don't know what is the newest status for that issue. Ping @doitian
env: dev node
open channel many times return CkbTxUnlockError(TxDep(Other(invalid cell status: "unknown")))
thread 'tokio-runtime-worker' panicked at /Users/guopenglin/demo2/fiber2/fiber/src/fiber/network.rs:1377:26: Signing succeeded: CkbTxUnlockError(TxDep(Other(invalid cell status: "unknown"))) note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace