Sha256: 9982cd88733976ba35a5f6b830d8572b1f9df8a630f55170658ed967fb713fd0

Contents?: true

Size: 294 Bytes

Versions: 7

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

module Lightning
  module Onion
    module FailureMessages
      module UnknownNextPeer
        def to_payload
          [type_code].pack('n')
        end

        def self.load(payload)
          new(*payload.unpack('n'))
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lightning-onion-0.2.6 lib/lightning/onion/failure_messages/unknown_next_peer.rb
lightning-onion-0.2.5 lib/lightning/onion/failure_messages/unknown_next_peer.rb
lightning-onion-0.2.4 lib/lightning/onion/failure_messages/unknown_next_peer.rb
lightning-onion-0.2.3 lib/lightning/onion/failure_messages/unknown_next_peer.rb
lightning-onion-0.2.2 lib/lightning/onion/failure_messages/unknown_next_peer.rb
lightning-onion-0.2.1 lib/lightning/onion/failure_messages/unknown_next_peer.rb
lightning-onion-0.2.0 lib/lightning/onion/failure_messages/unknown_next_peer.rb