Skip to content

the number of tx is not equals #1509

@huluBrother

Description

@huluBrother

when use follow rpc request block,

curl --location --request POST 'http://ip:port/v1/query/block' \
--header 'Content-Type: application/json' \
--data-raw '{
  "height": 78116
}

you will get block info, this show num_txs is 2989.

{
            "app_hash":"0389E6C3233ECABDB0BF51709AA8120C12EB66474F49FA36D17225B367DD5D07",
            "chain_id":"mainnet",
            "consensus_hash":"79D43A2344837A7EABF1E05BB6D317B1862A89C2EF6AC8D32C04F846348C3CC6",
            "data_hash":"C76ABBFCAAEB32C824DE9353E003924206D2E30CF6DD79F6E23D35A0F4E49369",
            "evidence_hash":"",
            "height":"78116",
            "last_block_id":{
                "hash":"CAFD8BD8EFC54C34CF31E16DDC31490E8022443E0A55EB931FB92889B1B778EA",
                "parts":{
                    "hash":"A0B6214697A0A65D62631D6280B61A48B697EE08127C9E86C10FCAFCE6FCC0A7",
                    "total":"41"
                }
            },
            "last_commit_hash":"4CAED7E222A765DB4DC44CEBAEDF9E19B896B759638E588EB6256FB33A556A37",
            "last_results_hash":"1FE08E55A81D9F7AD03DC2F8DF3BF4637DBCA221D1C3FB5992C6DC0F61C2B740",
            "next_validators_hash":"E76ED3269AB6CE9F01727E11CDA981CBFBCD09F134EBF9E45C8CB27121F311E2",
            "num_txs":"2989",
            "proposer_address":"DC4DCD359293C1952B2F858A78781A941EA27E6C",
            "time":"2022-12-01T20:18:35.31534333Z",
            "total_txs":"94261393",
            "validators_hash":"E76ED3269AB6CE9F01727E11CDA981CBFBCD09F134EBF9E45C8CB27121F311E2",
        }

but when use follow rpc request blockTxs,

curl --location --request POST 'http://ip:port/v1/query/blocktxs' \
--header 'Content-Type: application/json' \
--data-raw '{
  "height": 78116,
  "page": 10,
  "per_page": 300,
  "prove": true,
  "order": "desc"
}'

you will get tx info, this show num_txs is 2988

{
    "page_count": 288,
    "total_txs": 2988
}

this is bug ? or field meaning changed

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions