-
Notifications
You must be signed in to change notification settings - Fork 378
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
bugfix: python's api close was non-functional #1141
bugfix: python's api close was non-functional #1141
Conversation
474b9a7
to
93abad4
Compare
e65b94e
to
edb0235
Compare
edb0235
to
f72e594
Compare
I am reviewing this one |
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.
Looks good to me. Some minor comments.
docs/changelog.rst
Outdated
* :feature:`1097` Added `--gas-price` command line option | ||
* :feature:`1038` Introduce an upper limit for the ``settle_timeout`` attribute of the netting channel | ||
* :bug:`1044` Rename ``/connection`` API endpoint to ``/connections`` for consistency | ||
* :bug:`1138` REST and Python API close did not working if a transfer was made. |
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.
working
->work
docs/changelog.rst
Outdated
* :feature:`921` Add ``/api/1/connection`` API endpoint returning information about all connected token networks. | ||
* :bug:`1011` Remove ``settled`` attribute from the NettingChannel smart contract. | ||
|
||
* :release:`0.1.0 <2017-09-12>` | ||
* :release:`0.1.0 <2017-09-12>`. |
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.
I think this appears as a section title in the changelog so it should not need a full stop at the end.
raiden/tests/api/test_pythonapi.py
Outdated
assert channel12.contract_balance == deposit | ||
assert api1.get_channel_list(token_address, api2.address) == [channel12] | ||
|
||
# there is a channel open, they must be checking each other |
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.
checking -> healthchecking
<--- being kind of pedantic here but anyway ..
amount = 10 | ||
assert api1.transfer(token_address, amount, api2.address) | ||
|
||
api1.close(token_address, api2.address) |
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.
as we discussed in the chat after you suggestions, add here more asserts after the close for the invariants of the channel state after close()
PR is approved. Merge as soon as tests pass. |
e939e08
to
816ea0a
Compare
This fixes the python api close, add a regression test for that problem and add general tests for it.
816ea0a
to
33317be
Compare
This fixes the python api close, add a regression test for that problem
and add general tests for it.