Page MenuHomePhabricator

docs: Correct description for getblockstats's txs field
ClosedPublic

Authored by PiRK on Wed, Sep 15, 09:13.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC27cf4e80cab5: docs: Correct description for getblockstats's txs field
Summary

It does count the coinbase transaction.

Refs #19766

This is a backport of core#19777

Test Plan

Verified the output for recent blocks on a block explorer.

$ src/bitcoin-cli getblockstats '"000000000000000009078f13b271c8bd3075bf77ed1fb70b08ac0cbc92545ce2"'
{
  ...
  "txs": 14,
  ...
}
$ src/bitcoin-cli getblockstats 704983
{
  ...
  "txs": 9,
  ...
}

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable