Skip to content

Commit

Permalink
Add testnet4 configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
azuchi committed Sep 4, 2024
1 parent 59a2402 commit 98acd62
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/bitcoin/chain_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ def self.signet
init('signet')
end

# testnet 4 genesis
def self.testnet4
init('testnet4')
end

def mainnet?
network == 'mainnet'
end
Expand All @@ -72,6 +77,10 @@ def signet?
network == 'signet'
end

def testnet4?
network == 'testnet4'
end

def genesis_block
header = Bitcoin::BlockHeader.new(
genesis['version'], genesis['prev_hash'].rhex, genesis['merkle_root'].rhex,
Expand Down

0 comments on commit 98acd62

Please sign in to comment.