Skip to content

block_info of CellMeta should exists when load_header in syscall #223

@gpBlockchain

Description

@gpBlockchain

send_transaction doesn't return an error if load_header is missing."


curl --location --request POST 'http://127.0.0.1:9000' \
--header 'Content-Type: application/json' \
--data-raw '{
        "jsonrpc":"2.0",
        "method":"send_transaction",
        "params":[{"version":"0x0","cell_deps":[{"out_point":{"tx_hash":"0x4dba223252967c0de970d82c4574c05fc4b6a6087e6575e353adb974573e4312","index":"0x2"},"dep_type":"code"},{"out_point":{"tx_hash":"0xdd0b859259661032c612dbc90e9695a7401309ab1ef8bb2744a9ba0e7a4b51f6","index":"0x0"},"dep_type":"dep_group"}],"inputs":[{"previous_output":{"tx_hash":"0x316f3ee51d7d549c51305c6e357e52d35fed709396bd71fa5e097e7c727834b4","index":"0x0"},"since":"0x0"},{"previous_output":{"tx_hash":"0x5dd90b074ceb5dad1d2f1785d0b0467ce1316180494fb63b782e79567fed9a65","index":"0x0"},"since":"0x0"}],"outputs":[{"capacity":"0x4a817c800","lock":{"code_hash":"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8","hash_type":"type","args":"0x12"},"type":{"code_hash":"0x82d76d1b75fe2fd9a27dfbaa65a039221a380d76c926f378d3f81cf3e7e13f2e","hash_type":"type","args":"0x"}},{"capacity":"0x12479f884267","lock":{"code_hash":"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8","hash_type":"type","args":"0x43d509d97f26007a285f39241cffcd411157196c"}}],"outputs_data":["0x4800000000000000","0x"],"header_deps":["0x5973206401fb50abd30e380c091c44fbc9bf9edc9ea15ac4f56aae24f1d2e405"],"witnesses":["0x550000001000000055000000550000004100000025ecaf67e3aaa11173250880a5dca129d949cc6ed5709d55d60a030f871869385e4a65ccf9dc11b3a61f61f9c903322bd200238f3d1525a12bfff5cfab2c76e500","0x"]}],
        "id":64
}'
curl: (52) Empty reply from server

[2025-06-13T07:28:00Z TRACE ckb_light_client_lib::protocols::status] LightClientProtocol.received SendLastState from SessionId(1), result OK(200)
[2025-06-13T07:28:00Z TRACE ckb_light_client_lib::protocols::relayer] RelayProtocol.received peer=SessionId(1), message=CompactBlock
thread 'http.worker0' panicked at /Users/guopenglin/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ckb-script-0.202.0/src/syscalls/load_header.rs:60:14:
block_info of CellMeta should exists when load_header in syscall
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2025-06-13T07:28:01Z TRACE ckb_light_client_lib::protocols::light_client] no fetching headers/transactions needed
[2025-06-13T07:28:01Z TRACE ckb_light_client_lib::protocols::filter::block_filter] could request block filters from 41 or not: false, finalized: index 0, number 0; cached: index 0, number 0, length 0; next cached: number 2000
[2025-06-13T07:28:01Z DEBUG ckb_light_client_lib::protocols::filter::block_filter] found best proved peer SessionId(1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions