Sha256: 4cc92b0759ec5c948ba82288ed47fa0aac9bb3563776749eb36c2e116b69a43f
Contents?: true
Size: 425 Bytes
Versions: 3
Compression:
Stored size: 425 Bytes
Contents
# frozen_string_literal: true module Lightning module Onion module FailureMessages module ChannelDisabled def to_payload [TYPES[:channel_disabled], flags, channel_update.htb.bytesize].pack('nH4n') + channel_update.htb end def self.load(payload) flags, len, rest = payload.unpack('H4nH*') new(flags, rest[0..len * 2]) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems