Sha256: 2297000127ba01aad8af34882f14edd06feeebe2c15eb5c9cf21658f1331fc06

Contents?: true

Size: 303 Bytes

Versions: 5

Compression:

Stored size: 303 Bytes

Contents

# frozen_string_literal: true

module Lightning
  module Onion
    module FailureMessages
      module FinalIncorrectHtlcAmount
        def to_payload
          [type_code].pack('n')
        end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lightning-onion-0.2.4 lib/lightning/onion/failure_messages/final_incorrect_htlc_amount.rb
lightning-onion-0.2.3 lib/lightning/onion/failure_messages/final_incorrect_htlc_amount.rb
lightning-onion-0.2.2 lib/lightning/onion/failure_messages/final_incorrect_htlc_amount.rb
lightning-onion-0.2.1 lib/lightning/onion/failure_messages/final_incorrect_htlc_amount.rb
lightning-onion-0.2.0 lib/lightning/onion/failure_messages/final_incorrect_htlc_amount.rb