This repository has been archived by the owner on Aug 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 110
swap: prevent bad cheques from being sent #1925
Draft
mortelli
wants to merge
51
commits into
master
Choose a base branch
from
swap-prevent-bad-cheques
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 27 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
c872714
swap: introduce pending cheques, drop peers on io errors
ralph-pichler c8aebdd
swap: return if confirm while no pending, add comments to peer getters
ralph-pichler ff1bbfc
swap: add comments for pending cheques
ralph-pichler ea75197
swap: add pending cheque key to TestStoreKeys
ralph-pichler b80884a
swap: use same err in same block
ralph-pichler 7c928ac
swap: check for pending cheque in payment threshold test
ralph-pichler 906f5b4
swap: rename checkPaymentThreshold and add comment about lock
ralph-pichler af27bb8
swap: adjust comments and error message
ralph-pichler afda8db
swap: dont crash if there is no last received cheque
ralph-pichler 0d20163
swap: improve logs and error messages
ralph-pichler d2123a3
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli a498e93
swap: check available balance before sending cheque, add placeholder …
mortelli 927a239
Merge remote-tracking branch 'origin/master' into swap-pending-cheques
ralph-pichler e22d28e
swap: add pending cheques to sentcheques and availablebalance
ralph-pichler 9ebe71c
Merge remote-tracking branch 'origin/swap-pending-cheques' into swap-…
mortelli 355ba72
swap: include pending cheques in tests
ralph-pichler a8b3cd1
swap: adjust balance before sending the cheque
ralph-pichler 8f933c2
Merge remote-tracking branch 'origin/swap-pending-cheques' into swap-…
mortelli d588a86
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 57680d2
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 36c43de
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 5212660
swap: remove loadPendingCheque re-declaration
mortelli 82cdcc3
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli a3f9e18
swap: fix TestAvailableBalance based on cheque logic changes from master
mortelli e48c165
swap/api: temporarily remove locks from Cheques function
mortelli ca193f0
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli e97f036
swap: remove placeholder function
mortelli 8b04042
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 56b502d
swap: refactor sendCheque
mortelli 37ceb8a
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 138cac0
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli ea71be9
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 3b10d6e
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli cc6dae6
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 031f935
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli d33e71d
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli dc62938
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli b9385a5
swap: temporarily disable bad cheques check
mortelli c60fe1e
swap: minor refactor to TestMultiChequeSimulation function
mortelli 3d02aa0
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 472b400
swap: re-enable bad cheques check
mortelli 171e7a2
swap: linter corrections
mortelli ffc9bdc
swap: fix inverted chequebook deploy amounts in TestSwapLogToFile fun…
mortelli 9cf629e
swap: re-add locks to Cheques function
mortelli 174334a
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 944dbff
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 7489976
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 23cbc92
swap: remove redundant change in TestSwapLogToFile
mortelli b7d18de
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli aa12503
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli 5989e3e
Merge remote-tracking branch 'origin/master' into swap-prevent-bad-ch…
mortelli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you just call this availableBalance. ChequebookBalance is not correct, as availableBalance is less than the chequebookBalance (see the defenition of availableBalance)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're right, fixed