Sha256: deffcb5b62e9471c896f53552f56f2f6a90979867afca2be110ed3c4b85a0b2f

Contents?: true

Size: 320 Bytes

Versions: 7

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true

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

        def self.load(payload)
          new(*payload.unpack('nq>'))
        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_incorrect_cltv_expiry.rb
lightning-onion-0.2.5 lib/lightning/onion/failure_messages/final_incorrect_cltv_expiry.rb
lightning-onion-0.2.4 lib/lightning/onion/failure_messages/final_incorrect_cltv_expiry.rb
lightning-onion-0.2.3 lib/lightning/onion/failure_messages/final_incorrect_cltv_expiry.rb
lightning-onion-0.2.2 lib/lightning/onion/failure_messages/final_incorrect_cltv_expiry.rb
lightning-onion-0.2.1 lib/lightning/onion/failure_messages/final_incorrect_cltv_expiry.rb
lightning-onion-0.2.0 lib/lightning/onion/failure_messages/final_incorrect_cltv_expiry.rb