-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor(channel/AdjEventSub): Set AdjEventSub to adhere to Adjudic…
…atorSubscription in go-perun. In run method, do not return if adjEvent is found. * refactor(channel/subscribe.go): Add IMPORTANT fix: In the DifferencesInControls function, if current state and next state are both Closed in the payment contract, then return a CloseEvent. This triggers a ConcludedEvent in Next(). This fix removes potential problems in edge cases in which the contract is closed, but no event was caught. This could have blocked the conclusion of the channel. The added code prevents such cases and guarantees that a closed channel in the contract is always detected. Rename variables in Next() to be more descriptive. * test(channel_test): Add client_test.go, testing the go-perun client functionality with the payment channel workflow. * refactor(channel/test): Add wallet.EphemeralWallet as return value in MakeRandPerunAccWallet(), satisfying requirements in the client_test.go test. Improve file path parsing, using getDataFilePath. * refactor(event): Rename PerunEvent methods to adhere to AdjudicatorEvent interface from go-perun. *add(payment): Add payment package to include test infrastructure for the go-perun client, used by client_test.go.
- Loading branch information
Showing
13 changed files
with
525 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.