Skip to content

Fix share check - #21

Open
kirelagin wants to merge 1 commit into
masterfrom
kirelagin/cli-fix-share-check
Open

kirelagin wants to merge 1 commit into
masterfrom
kirelagin/cli-fix-share-check

Conversation

@kirelagin

@kirelagin kirelagin commented Nov 7, 2019 •

Copy link
Copy Markdown
Contributor

We need to check that the new balance is acceptable, given the size of our committed share. The check is supposed to be “our share >= what we owe”.

Currently the check is “our share >= channel balance”, and this is wrong, because channel balance is how much we are owed. We have to negate it to get how much we owe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants