Sha256: 5603902aa61e38a28cc0e8b2ec8a1403453109b0918d78368921496de0aca010

Contents?: true

Size: 351 Bytes

Versions: 3

Compression:

Stored size: 351 Bytes

Contents

# frozen_string_literal: true

module Lightning
  module Onion
    module FailureMessages
      module FinalIncorrectHtlcAmount
        def to_payload
          [TYPES[:final_incorrect_htlc_amount], incoming_htlc_amt].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_htlc_amount.rb
lightning-onion-0.2.9 lib/lightning/onion/failure_messages/final_incorrect_htlc_amount.rb
lightning-onion-0.2.8 lib/lightning/onion/failure_messages/final_incorrect_htlc_amount.rb