Module: Lightning::Onion::FailureMessages::FinalExpiryTooSoon

Defined in:
lib/lightning/onion/failure_messages/final_expiry_too_soon.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.load(_) ⇒ Object



11
12
13
# File 'lib/lightning/onion/failure_messages/final_expiry_too_soon.rb', line 11

def self.load(_)
  FinalExpiryTooSoon
end

Instance Method Details

#to_payloadObject



7
8
9
# File 'lib/lightning/onion/failure_messages/final_expiry_too_soon.rb', line 7

def to_payload
  [TYPES[:final_expiry_too_soon]].pack('n')
end