Sha256: 3c7c3bba05733a9d66aa8422771e7e7bd632199664577ad008182d2f1cfc6093

Contents?: true

Size: 550 Bytes

Versions: 38

Compression:

Stored size: 550 Bytes

Contents

module Bitcoin
  module Message

    # block message
    # https://bitcoin.org/en/developer-reference#getblocks
    class GetBlocks < Base
      include HeadersParser
      extend HeadersParser

      COMMAND = 'getblocks'

      # 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-0.2.8 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.2.7 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.2.6 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.2.5 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.2.4 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.2.2 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.2.1 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.2.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.1.9 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.1.8 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.1.7 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.1.6 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.1.5 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.1.4 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.1.3 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.1.2 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.1.1 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.0.1 lib/bitcoin/message/get_blocks.rb