Sha256: f32429115f587a92564c81b3fb7ce83e13f25b4793db329687c04aa01b36a866

Contents?: true

Size: 588 Bytes

Versions: 15

Compression:

Stored size: 588 Bytes

Contents

require_relative 'spec_helper'
describe BTC::BlockHeader do

  describe "Genesis Mainnet" do
    it "should have a correct hash" do
      BlockHeader.genesis_mainnet.block_id.must_equal "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f"
      BlockHeader.genesis_mainnet.height.must_equal 0
    end
  end

  describe "Genesis Testnet" do
    it "should have a correct hash" do
      BlockHeader.genesis_testnet.block_id.must_equal "000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943"
      BlockHeader.genesis_testnet.height.must_equal 0
    end
  end
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
btcruby-1.1.4 spec/block_header_spec.rb
btcruby-1.1.3 spec/block_header_spec.rb
btcruby-1.1.2 spec/block_header_spec.rb
btcruby-1.1.1 spec/block_header_spec.rb
btcruby-1.1 spec/block_header_spec.rb
btcruby-1.0.9 spec/block_header_spec.rb
btcruby-1.0.8 spec/block_header_spec.rb
btcruby-1.0.7 spec/block_header_spec.rb
btcruby-1.0.6 spec/block_header_spec.rb
btcruby-1.0.5 spec/block_header_spec.rb
btcruby-1.0.4 spec/block_header_spec.rb
btcruby-1.0.3 spec/block_header_spec.rb
btcruby-1.0.2 spec/block_header_spec.rb
btcruby-1.0.1 spec/block_header_spec.rb
btcruby-1.0.0 spec/block_header_spec.rb