Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

0.2 hibernate #39

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

0.2 hibernate #39

wants to merge 21 commits into from

Conversation

TwitRco
Copy link

@TwitRco TwitRco commented Jan 18, 2018

No description provided.

matsjj and others added 21 commits May 26, 2016 15:48
With more stricter ordering and resending of messages, the protocol for
negotiating a new channel status can get simplified. As resending lost
messages means that a started exchange can not be aborted anymore, we
can already define the next revocation hash at the end of the current
exchange. With a known revocation hash, the initiator can directly send
signatures for the update.

Also, LNPaymentProcessor and LNPaymentLogic have been made less
stateful with relying on the database as single source of truth. This
means that much logic has been moved into the DBHandler.
NodeKey is a wrapper around ECKey that does allow comparing the same
ECKey. ECKey.equals is generally not reliable, as it also compares the
createDate of the key.
When both parties send a request to update the channel concurrently,
there was a problem that could have led to loss of funds.

We now send a fresh revocation hash to be used for the next exchange at
the beginning of the exchange (with the A message), such that in case
of a conflict, we can use that unused revocation hash directly to
construct the new status.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants