Class: Bitcoin::Message::GetCFHeaders
Overview
getcfheaders message for BIP-157 github.com/bitcoin/bips/blob/master/bip-0157.mediawiki#getcfheaders
Constant Summary collapse
- COMMAND =
'getcfheaders'
Instance Attribute Summary collapse
-
#filter_type ⇒ Object
Returns the value of attribute filter_type.
-
#start_height ⇒ Object
Returns the value of attribute start_height.
-
#stop_hash ⇒ Object
little endian.
Instance Method Summary collapse
-
#initialize(filter_type, start_height, stop_hash) ⇒ GetCFHeaders
constructor
A new instance of GetCFHeaders.
Methods included from CFParser
parse_from_payload, to_payload
Methods inherited from Base
from_pkt, #to_payload, #to_pkt
Methods included from Util
#byte_to_bit, #calc_checksum, #decode_base58_address, #double_sha256, #encode_base58_address, #hash160, #hkdf_sha256, #hmac_sha256, #pack_boolean, #pack_var_int, #pack_var_string, #padding_zero, #sha256, #tagged_hash, #unpack_boolean, #unpack_var_int, #unpack_var_int_from_io, #unpack_var_string, #valid_address?
Methods included from HexConverter
Constructor Details
#initialize(filter_type, start_height, stop_hash) ⇒ GetCFHeaders
Returns a new instance of GetCFHeaders.
16 17 18 19 20 |
# File 'lib/bitcoin/message/get_cfheaders.rb', line 16 def initialize(filter_type, start_height, stop_hash) @filter_type = filter_type @start_height = start_height @stop_hash = stop_hash end |
Instance Attribute Details
#filter_type ⇒ Object
Returns the value of attribute filter_type.
12 13 14 |
# File 'lib/bitcoin/message/get_cfheaders.rb', line 12 def filter_type @filter_type end |
#start_height ⇒ Object
Returns the value of attribute start_height.
13 14 15 |
# File 'lib/bitcoin/message/get_cfheaders.rb', line 13 def start_height @start_height end |
#stop_hash ⇒ Object
little endian
14 15 16 |
# File 'lib/bitcoin/message/get_cfheaders.rb', line 14 def stop_hash @stop_hash end |