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

A false positive live cell in the Testnet. #181

Closed
yangby-cryptape opened this issue Jan 18, 2024 · 0 comments
Closed

A false positive live cell in the Testnet. #181

yangby-cryptape opened this issue Jan 18, 2024 · 0 comments

Comments

@yangby-cryptape
Copy link
Collaborator

yangby-cryptape commented Jan 18, 2024

Description

In the explorer of CKB testnet, we can see the last output of transaction 0xd7c7...6d74 is spent.

But, I tried twice in my local machine (remove all data and sync again), it's still be live cell in light client.

Commands and their Results

  • Execute:

    curl --silent -X POST -H "Content-Type: application/json" -d '{"jsonrpc": "2.0", "method": "get_tip_header", "params": [], "id": 1}' "${CKB_LC_URL}" | jq .result.number

    Result:

    "0xb6e2d0"
  • Execute:

    echo '{
        "id": 2,
        "jsonrpc": "2.0",
        "method": "get_cells",
        "params": [
            {
                "script": {
                    "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
                    "hash_type": "type",
                    "args": "0xa3c778981c19e1dcc611fb2132dcdaac075a5064"
                },
                "script_type": "lock"
            },
            "asc",
            "0x64"
        ]
    }' \
    | curl --silent -H 'content-type: application/json' -d @- "${CKB_LC_URL}" | jq ".result.objects"

    Result:

    [
      {
        "block_number": "0x7abbc5",
        "out_point": {
          "index": "0x1",
          "tx_hash": "0xd7c7da36e9200d3e91f2fdb702e94d2b6f58f67d9fc1fbef417c8f4a39d96d74"
        },
        "output": {
          "capacity": "0x4e4714c66b",
          "lock": {
            "args": "0xa3c778981c19e1dcc611fb2132dcdaac075a5064",
            "code_hash": "0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",
            "hash_type": "type"
          },
          "type": null
        },
        "output_data": "0x",
        "tx_index": "0x2"
      }
    ]
    
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