Class: Bitcoin::Message::GetData
- Extended by:
- InventoriesParser
- Includes:
- InventoriesParser
- Defined in:
- lib/bitcoin/message/get_data.rb
Overview
getdadta message bitcoin.org/en/developer-reference#getdata
Constant Summary collapse
- COMMAND =
'getdata'
Instance Attribute Summary collapse
-
#inventories ⇒ Object
readonly
Returns the value of attribute inventories.
Instance Method Summary collapse
-
#initialize(inventories = []) ⇒ GetData
constructor
A new instance of GetData.
Methods included from InventoriesParser
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(inventories = []) ⇒ GetData
Returns a new instance of GetData.
14 15 16 |
# File 'lib/bitcoin/message/get_data.rb', line 14 def initialize(inventories = []) @inventories = inventories end |
Instance Attribute Details
#inventories ⇒ Object (readonly)
Returns the value of attribute inventories.
12 13 14 |
# File 'lib/bitcoin/message/get_data.rb', line 12 def inventories @inventories end |