Skip to content

getblocktemplate returns a standard P2PKH with 0 sigops (testnet) #24255

@antonilol

Description

@antonilol

i noticed a standard 0 sigops transaction when calling getblocktemplate, but that transaction turned out to be P2PKH of course with OP_CHECKSIG

Expected behavior

"sigops": 36, in block template json

Actual behavior

      ...
      "txid": "54eee291ec73fcc3faf496cf90ffc9b6faa57940234802bdae58c51540016853",
      "hash": "54eee291ec73fcc3faf496cf90ffc9b6faa57940234802bdae58c51540016853",
      "depends": [
      ],
      "fee": 1404,
      "sigops": 0,   <-- here
      "weight": 5472
      ...

To reproduce

somehow get the sigop count of 54eee291ec73fcc3faf496cf90ffc9b6faa57940234802bdae58c51540016853 (testnet)

System information

bitcoin.org binary v22.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions