Sha256: 85efd04e959f3a59aded66fbbbec03075db3c14b38ab70414dd05823bd74fba5

Contents?: true

Size: 305 Bytes

Versions: 7

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

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