Closed yangby-cryptape closed 7 months ago
In the explorer of CKB testnet, we can see the last output of transaction 0xd7c7...6d74 is spent.
0xd7c7...6d74
But, I tried twice in my local machine (remove all data and sync again), it's still be live cell in light client.
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"
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"
[ { "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" } ]
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:
Result:
Execute:
Result: