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-1.7.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-1.6.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-1.5.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-1.4.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-1.3.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-1.2.1 lib/bitcoin/message/get_blocks.rb
bitcoinrb-1.2.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-1.1.1 lib/bitcoin/message/get_blocks.rb
bitcoinrb-1.1.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-1.0.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.9.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.8.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.7.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.6.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.5.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.4.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.3.2 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.3.1 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.3.0 lib/bitcoin/message/get_blocks.rb
bitcoinrb-0.2.9 lib/bitcoin/message/get_blocks.rb