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