Package org.consensusj.bitcoinj.util
Class BlockUtil
java.lang.Object
org.consensusj.bitcoinj.util.BlockUtil
Utility class containing
blockHeightFromCoinbase(Block)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
blockHeightFromCoinbase
(org.bitcoinj.core.Block block) Return the block height contained in a standalone BIP34-compatible Bitcoin block (or -1 if it's a pre-BIP34 block)
-
Constructor Details
-
BlockUtil
public BlockUtil()
-
-
Method Details
-
blockHeightFromCoinbase
Return the block height contained in a standalone BIP34-compatible Bitcoin block (or -1 if it's a pre-BIP34 block)- Parameters:
block
- A Bitcoin block (need not be attached to a chain)- Returns:
- The block height if available (BIP 34) or -1.
-