nearcore
nearcore copied to clipboard
Incorrect height_included field with chunk method for valid chunk DNpbdE7STG5REEjwu6P8sUq8tbTpppk1Pi7nDPPXnBvV
Describe the bug
-
chunk
method on DNpbdE7STG5REEjwu6P8sUq8tbTpppk1Pi7nDPPXnBvV returns theheight_included
field as 121106409, but this block number was skipped.
To Reproduce
curl https://rpc.mainnet.near.org \
--request POST \
--header "Content-Type: application/json" \
--data '{"method": "chunk","params": {"chunk_id": "DNpbdE7STG5REEjwu6P8sUq8tbTpppk1Pi7nDPPXnBvV"},"id":1,"jsonrpc":"2.0"}' | jq '.result | del(.transactions) | del(.receipts)'
{
"author": "astro-stakers.poolv1.near",
"header": {
"chunk_hash": "DNpbdE7STG5REEjwu6P8sUq8tbTpppk1Pi7nDPPXnBvV",
"prev_block_hash": "uep2bvHP37feZM2rjX6iVzwBiDqG1ZsQqEV8osVC5Dc",
"outcome_root": "J7zfWb2v9LQWZ7YmAjeWbj8V5rjeSx5BBXvvr6CGj5Gg",
"prev_state_root": "6xjSGnYdTirdYdGnHSojeFJmM3ExzofgkkiujNKy5ijm",
"encoded_merkle_root": "7FJRi4JPv2tDoZUVsDweyu2ma7nXewA46W24x5iqQG33",
"encoded_length": 767,
"height_created": 121106409,
"height_included": 121106409,
"shard_id": 1,
"gas_used": 4408194294442,
"gas_limit": 1000000000000000,
"rent_paid": "0",
"validator_reward": "0",
"balance_burnt": "335224172831600000000",
"outgoing_receipts_root": "8cyZm4HpQm7aTTeLGfyCVzKzMpne1LUBn6UU4Uj4oEVz",
"tx_root": "11111111111111111111111111111111",
"validator_proposals": [],
"signature": "ed25519:5X4zYWTCVPFVfrabnGY7iwqajCTHTQ7oYoWmhHpbCrT6q8JcdZmGAcpGLU4DG99qGiRddxU92ZCXLg4MUHZmcR5A"
}
}
Expected behavior
Expect height_included
to be 121106410; block121106409 was skipped.
Screenshots
Version (please complete the following information):
https://rpc.mainnet.near.org
Additional context
block
method returns the correct height_included
as shown in the screenshot above.