Description

ExtractCoinbaseHeight attempts to extract the height of the block from the scriptSig of a coinbase transaction. Coinbase heights are only present in blocks of version 2 or later. This was added as part of BIP0034.

ExtractCoinbaseHeight is referenced in 2 repositories

github.com/btcsuite/btcd

...