Sha256: 3dbd387d5597f5b5c33e38cad1581c87795089f31c7ed8803c5957d488aa5e41

Contents?: true

Size: 299 Bytes

Versions: 7

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true

module Lightning
  module Onion
    module FailureMessages
      module PermanentNodeFailure
        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/permanent_node_failure.rb
lightning-onion-0.2.5 lib/lightning/onion/failure_messages/permanent_node_failure.rb
lightning-onion-0.2.4 lib/lightning/onion/failure_messages/permanent_node_failure.rb
lightning-onion-0.2.3 lib/lightning/onion/failure_messages/permanent_node_failure.rb
lightning-onion-0.2.2 lib/lightning/onion/failure_messages/permanent_node_failure.rb
lightning-onion-0.2.1 lib/lightning/onion/failure_messages/permanent_node_failure.rb
lightning-onion-0.2.0 lib/lightning/onion/failure_messages/permanent_node_failure.rb