-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deposit recovery upon lost state #5
base: main
Are you sure you want to change the base?
Deposit recovery upon lost state #5
Conversation
Signed-off-by: Matthias Geihs <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #5 +/- ##
===========================================
- Coverage 99.00% 86.58% -12.42%
===========================================
Files 9 9
Lines 200 231 +31
Branches 53 63 +10
===========================================
+ Hits 198 200 +2
- Misses 2 31 +29
Continue to review full report at Codecov.
|
The current version requires to fix the deposited funds upon recovery initialization. An alternative would be to conclude the channel with a zero balance in case of a recovery. And when the asset holder detects a zero balance at conclusion, it would automatically leave the initial deposit values untouched. Edit |
638e25d
to
579bff5
Compare
`channelID` is a convenient variable name, so we rename the function to prevent shadowing. Signed-off-by: Matthias Geihs <[email protected]>
0d56a4b
to
bef1060
Compare
Signed-off-by: Matthias Geihs <[email protected]>
Signed-off-by: Matthias Geihs <[email protected]>
Signed-off-by: Matthias Geihs <[email protected]>
bef1060
to
a2161c6
Compare
Closes #4
This change allows a channel participant to recover its deposited funds from purely on-chain calldata. This is useful in case the channel state has been lost.
The change introduces a method
depositChannelParticipant
on the asset holder that records thechannelID
upon funds deposit. Previously, only thefundingID
would be available via calldata, from which thechannelID
is not recoverable.The adjudicator is augmented with a function
registerDepositRecovery
which allows a channel participant to initiate deposited funds recovery.