Module: XRBP::Overlay

Defined in:
lib/xrbp/overlay/connection.rb,
lib/xrbp/overlay/frame.rb,
lib/xrbp/overlay/messages.rb,
lib/xrbp/overlay/handshake.rb

Overview

The Overlay is the Peer-to-Peer (P2P) network established by rippled node instances to each other. It is what is used to relay transactions and network state as the consensus process is executed.

This module facilitates communication with the Overlay P2P network from Ruby.

Defined Under Namespace

Classes: Connection

Constant Summary collapse

MESSAGES =

Map of Protocol Message Type to Class

See ProtocolMessage.h

{
  :MTHELLO                => Protocol::TMHello,
  :MTMANIFESTS            => Protocol::TMManifests,
  :MTPING                 => Protocol::TMPing,
  :MTCLUSTER              => Protocol::TMCluster,
  :MTGET_SHARD_INFO       => Protocol::TMGetShardInfo,
  :MTSHARD_INFO           => Protocol::TMShardInfo,
  :MTGET_PEER_SHARD_INFO  => Protocol::TMGetPeerShardInfo,
  :MTGET_PEERS            => Protocol::TMGetPeers,
  :MTPEERS                => Protocol::TMPeers,
  :MTENDPOINTS            => Protocol::TMEndpoints,
  :MTTRANSACTION          => Protocol::TMTransaction,
  :MTGET_LEDGER           => Protocol::TMGetLedger,
  :MTLEDGER_DATA          => Protocol::TMLedgerData,
  :MTPROPOSE_LEDGER       => Protocol::TMProposeSet,
  :MTSTATUS_CHANGE        => Protocol::TMStatusChange,
  :MTHAVE_SET             => Protocol::TMHaveTransactionSet,
  :MTVALIDATION           => Protocol::TMValidation,
  :MTGET_OBJECTS          => Protocol::TMGetObjectByHash
}

Class Method Summary collapse

Class Method Details

.create_msg(hash) ⇒ Object


27
28
29
# File 'lib/xrbp/overlay/messages.rb', line 27

def self.create_msg(hash)
  # ...
end