ckb-cli icon indicating copy to clipboard operation
ckb-cli copied to clipboard

The packet contract is deployed here, and a PoolRejectedRBF error occurs. Then it is resent and an invalid cell is reported.

Open 15168316096 opened this issue 2 years ago • 4 comments

Bug Report

The packet contract is deployed here, and a PoolRejectedRBF error occurs. Then it is resent and an invalid cell is reported

Current Behavior

Expected Behavior

I expect the ckb-cli deployment transaction get_cell will not get the death cell.

Environment

  • CKB version: latest develop branch
  • Chain: /
  • Operating system: MacOS 12.1
  • Arch: x64
  • Installation: Built from source

Additional context/Screenshots

This bug can reproduced by these steps:


ckb_cli_deploy:
 git clone https://github.com/nervosnetwork/ckb-cli.git
 cd ckb-cli
 cargo install --path . -f --locked
 export API_URL=https://testnet.ckbapp.dev/
	 
ckb_contract_deploy:
 git clone -b chore/contract-deployment https://github.com/synapseweb3/forcerelay/
 cd forcerelay/tools/ibc-test/contracts/deployment
 mkdir tx && mkdir migration
 ./upload.sh connection https://testnet.ckbapp.dev/ ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq2v6vh7fgskk26raed4r6sv6xneyq9ls7cfywmu9
   ./upload.sh channel https://testnet.ckbapp.dev/ ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq2v6vh7fgskk26raed4r6sv6xneyq9ls7cfywmu9
   ./upload.sh packet https://testnet.ckbapp.dev/ ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq2v6vh7fgskk26raed4r6sv6xneyq9ls7cfywmu9

#  when deploying the packet contract for the first time, it will prompt Send transaction error: jsonrpc error: Server error: PoolRejectedRBF: RBF rejected: Tx's current fee is 290221, expect it to >= 725776 to replace old txs, and then resend the transaction. Prompt Invalid cell status: unknown, out_point: OutPoint { tx_hash: Byte32(0xdeaa7f2ffc5cad4af53559c66b39643ad241b8db3317c847fe2efc1e2c2a7819), index: Uint32(0x01000000) }, found query https://testnet.ckbapp.dev / The get_cell interface does not contain OutPoint { tx_hash: Byte32 (0xdeaa7f2ffc5cad4af53559c66b39643ad241b8db3317c847fe2efc1e2c2a7819), index: Uint32(0x01000000) } This, but the transaction constructed by ckb-cli contains this, using the local index?

15168316096 avatar Oct 20 '23 01:10 15168316096

@eval-exec please help confirm the processing logic of getcell and OffchainTransactionDependencyProvider

15168316096 avatar Oct 20 '23 01:10 15168316096

@eval-exec please help confirm the processing logic of getcell and OffchainTransactionDependencyProvider

How about adding sleep ${N} between these ./upload.sh?

eval-exec avatar Oct 20 '23 02:10 eval-exec

Before deploying the contract, upload.sh was executed and waited for several minutes. The next contract was sent after the previous contract was deployed successfully.

15168316096 avatar Oct 20 '23 02:10 15168316096

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Jul 27 '24 01:07 github-actions[bot]