Sha256: 57be0828f7be46bda10634363a3d5bb41520e098db7c1612a8bbd7eac18230b8

Contents?: true

Size: 297 Bytes

Versions: 7

Compression:

Stored size: 297 Bytes

Contents

# frozen_string_literal: true

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