class Bitcoin::Message::GetHeaders

getheaders message bitcoin.org/en/developer-reference#getheaders

Constants

COMMAND

Attributes

hashes[RW]

block header hashes

stop_hash[RW]
version[RW]

protocol version

Public Class Methods

new(version, hashes, stop_hash = DEFAULT_STOP_HASH) click to toggle source
# File lib/bitcoin/message/get_headers.rb, line 20
def initialize(version, hashes, stop_hash = DEFAULT_STOP_HASH)
  @version = version
  @hashes = hashes
  @stop_hash = stop_hash
end