Sha256: ac5224365631dbba7e659ae1514192799e048532f8ed4ededb7517040ebf68f5

Contents?: true

Size: 345 Bytes

Versions: 3

Compression:

Stored size: 345 Bytes

Contents

# frozen_string_literal: true

module Lightning
  module Onion
    module FailureMessages
      module FinalIncorrectCltvExpiry
        def to_payload
          [TYPES[:final_incorrect_cltv_expiry], cltv_expiry].pack('nq>')
        end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lightning-onion-0.2.10 lib/lightning/onion/failure_messages/final_incorrect_cltv_expiry.rb
lightning-onion-0.2.9 lib/lightning/onion/failure_messages/final_incorrect_cltv_expiry.rb
lightning-onion-0.2.8 lib/lightning/onion/failure_messages/final_incorrect_cltv_expiry.rb