Sha256: c3d53cf753f60050bd7ccf4aa94da93fda390d9d249738b5294a581e162d472d

Contents?: true

Size: 570 Bytes

Versions: 15

Compression:

Stored size: 570 Bytes

Contents

module Bitcoin
  module Message

    # getcfheaders message for BIP-157
    # https://github.com/bitcoin/bips/blob/master/bip-0157.mediawiki#getcfheaders
    class GetCFHeaders < Base
      include CFParser
      extend CFParser

      COMMAND = 'getcfheaders'

      attr_accessor :filter_type
      attr_accessor :start_height
      attr_accessor :stop_hash    # little endian

      def initialize(filter_type, start_height, stop_hash)
        @filter_type = filter_type
        @start_height = start_height
        @stop_hash = stop_hash
      end

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
bitcoinrb-1.7.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-1.6.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-1.5.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-1.4.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-1.3.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-1.2.1 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-1.2.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-1.1.1 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-1.1.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-1.0.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-0.9.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-0.8.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-0.7.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-0.6.0 lib/bitcoin/message/get_cfheaders.rb
bitcoinrb-0.5.0 lib/bitcoin/message/get_cfheaders.rb