Sha256: af5a8ec30be35fa2ae33eda6d3b2b35913f78bc8a236830144eee1ed9e9f859a

Contents?: true

Size: 556 Bytes

Versions: 38

Compression:

Stored size: 556 Bytes

Contents

module Bitcoin
  module Message

    # getheaders message
    # https://bitcoin.org/en/developer-reference#getheaders
    class GetHeaders < Base
      include HeadersParser
      extend HeadersParser

      COMMAND = 'getheaders'

      # protocol version
      attr_accessor :version

      # block header hashes
      attr_accessor :hashes

      attr_accessor :stop_hash

      def initialize(version, hashes, stop_hash = DEFAULT_STOP_HASH)
        @version = version
        @hashes = hashes
        @stop_hash = stop_hash
      end

    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
bitcoinrb-1.7.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-1.6.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-1.5.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-1.4.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-1.3.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-1.2.1 lib/bitcoin/message/get_headers.rb
bitcoinrb-1.2.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-1.1.1 lib/bitcoin/message/get_headers.rb
bitcoinrb-1.1.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-1.0.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-0.9.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-0.8.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-0.7.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-0.6.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-0.5.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-0.4.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-0.3.2 lib/bitcoin/message/get_headers.rb
bitcoinrb-0.3.1 lib/bitcoin/message/get_headers.rb
bitcoinrb-0.3.0 lib/bitcoin/message/get_headers.rb
bitcoinrb-0.2.9 lib/bitcoin/message/get_headers.rb