nervosnetwork / ckb-explorer

CKB Explorer
https://explorer.nervos.org/
MIT License
37 stars 42 forks source link

Transaction is not displaying outputs. #1627

Open jordanmack opened 10 months ago

jordanmack commented 10 months ago

Describe the bug The following transaction is not displaying any outputs:

https://pudge.explorer.nervos.org/transaction/0xa861749437048326c7e276388af4bed34a106f9b8e51f6b6b4d9c8743567543e

Screenshots 20240207142517

Additional context The following output is from an RPC get_transaction call:

{
    "jsonrpc": "2.0",
    "result": {
        "cycles": "0x1694ce",
        "fee": null,
        "min_replace_fee": null,
        "time_added_to_pool": null,
        "transaction": {
            "cell_deps": [
                {
                    "dep_type": "dep_group",
                    "out_point": {
                        "index": "0x0",
                        "tx_hash": "0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37"
                    }
                },
                {
                    "dep_type": "code",
                    "out_point": {
                        "index": "0x0",
                        "tx_hash": "0x9154df4f7336402114d04495175b37390ce86a4906d2d4001cf02c3e6d97f39c"
                    }
                },
                {
                    "dep_type": "code",
                    "out_point": {
                        "index": "0x0",
                        "tx_hash": "0xe12877ebd2c3c364dc46c5c992bcfaf4fee33fa13eebdf82c591fc9825aab769"
                    }
                }
            ],
            "hash": "0xa861749437048326c7e276388af4bed34a106f9b8e51f6b6b4d9c8743567543e",
            "header_deps": [],
            "inputs": [
                {
                    "previous_output": {
                        "index": "0x0",
                        "tx_hash": "0x240f2c9267f8c230c328e3e37532d314884267456cf921a239ee9dc7734ff75e"
                    },
                    "since": "0x0"
                }
            ],
            "outputs": [
                {
                    "capacity": "0x35a4e9000",
                    "lock": {
                        "args": "0x01b6ef5c2d62f6444fa0289e146802436945a1118800",
                        "code_hash": "0x79f90bb5e892d80dd213439eeab551120eb417678824f282b4ffb5f21bad2e1e",
                        "hash_type": "type"
                    },
                    "type": {
                        "args": "0xdb13eaec5f03e1b733cb7c2bf12ec57458b11eb64de55d9eb4addb35dda7305d",
                        "code_hash": "0xc5e5dcf215925f7ef4dfaf5f4b4f105bc321c02776d6e7d52a1db3fcd9d011a4",
                        "hash_type": "type"
                    }
                },
                {
                    "capacity": "0x4190a5f20",
                    "lock": {
                        "args": "0x01b6ef5c2d62f6444fa0289e146802436945a1118800",
                        "code_hash": "0x79f90bb5e892d80dd213439eeab551120eb417678824f282b4ffb5f21bad2e1e",
                        "hash_type": "type"
                    },
                    "type": null
                }
            ],
            "outputs_data": [
                "0x64000000000000000000000000000000",
                "0x"
            ],
            "version": "0x0",
            "witnesses": [
                "0x690000001000000069000000690000005500000055000000100000005500000055000000410000008ccb7ca37a3b230afb947a9834b72d6d4df45f2f81f91657d64e95ae15c370ff0014839a181f08184c3650c957a9d08e3e431ed52a044a7e4efc20fb455a022601"
            ]
        },
        "tx_status": {
            "block_hash": "0x10b2b8589ea0185dd134d5fd637401a32ecc2d8697f6d45770412d1b5fdb8856",
            "reason": null,
            "status": "committed"
        }
    },
    "id": 42
}
FrederLu commented 10 months ago
image

Hello,@jordanmack I see that the output has data displayed, you can confirm again.When you take a screenshot, the data is probably still being processed.

Keith-CY commented 10 months ago
image

Hello,@jordanmack I see that the output has data displayed, you can confirm again.When you take a screenshot, the data is probably still being processed.

@rabbitz Please confirm if there could be latency in data processing for outputs, even if the transaction status is committed.

jordanmack commented 10 months ago

@FrederLu Yes, I see the output data now.

@Keith-CY You can see from my screenshot it already had 58 confirmations by the time I took it. If there is going to be a significant delay in processing, it would probably be beneficial to put some kind of notification on the page about that.

Keith-CY commented 10 months ago

@FrederLu Yes, I see the output data now.

@Keith-CY You can see from my screenshot it already had 58 confirmations by the time I took it. If there is going to be a significant delay in processing, it would probably be beneficial to put some kind of notification on the page about that.

Indeed, I will add a message instead of a blank list.

But the data are expected to be ready when the transaction is committed, so we should have a check for it cc @rabbitz