Sha256: fd8d6fab4b2875014cd8898b853249e4787888df54524df8f5e5af0430c23b83
Contents?: true
Size: 413 Bytes
Versions: 3
Compression:
Stored size: 413 Bytes
Contents
# frozen_string_literal: true module Lightning module Onion module FailureMessages module TemporaryChannelFailure def to_payload [TYPES[:temporary_channel_failure], channel_update.bytesize].pack('n2') + channel_update.htb end def self.load(payload) len, rest = payload.unpack('nH*') new(rest[0..len * 2]) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems