Sha256: 44839bfa623ec93cac4d04b4a89491b0cade37c534578bcd0d692cc659e8db4a
Contents?: true
Size: 448 Bytes
Versions: 7
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true module Lightning module Onion module FailureMessages module AmountBelowMinimum def to_payload [type_code, htlc_msat, channel_update.htb.bytesize].pack('nq>n') + channel_update.htb end def self.load(payload) type_code, htlc_msat, len, rest = payload.unpack('nq>nH*') new(type_code, htlc_msat, rest[0..len * 2]) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems