-
Notifications
You must be signed in to change notification settings - Fork 125
Snapshot proof commands #244
Snapshot proof commands #244
Conversation
…etTransfers and getAccountData
hey @pdecol, awesome! I'm on it ;) |
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.
Gave it a quick glance last night; will give it a proper look-over today.
|
||
If you are familiar with Python 2's C API, we'd love to hear from you! | ||
Check the `GitHub issue <https://github.com/todofixthis/pyota-ccurl/issues/4>`_ | ||
for more information. |
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.
🙀 Wow, good catch!
break | ||
|
||
# Reset the command so that we can call it again. | ||
wasp_response = wasf_command(addresses=[addy]) |
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.
wasp_response = wasf_command(addresses=[addy]) | |
wasf_response = wasf_command(addresses=[addy]) |
|
||
# Reset the command so that we can call it again. | ||
wasp_response = wasf_command(addresses=[addy]) | ||
if wasp_response['states'][0]: |
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.
if wasp_response['states'][0]: | |
if wasf_response['states'][0]: |
Looking at Chris's comment (iotaledger/iota.js#427 (comment)), I'm wondering if we should hold off on this change until we implement the account module in PyOTA — it seems like the changes needed to implement that will conflict with what's being proposed in this PR. @pdecol @lzpap What do you think? |
What I try to clarify in the other ticket is only a part of what is proposed in this PR. To be precise it is about whether or not the The other changes (adding the |
resolves #217, resolves #175, resolves #46
This PR makes getNewAddresses, getInputs, getTransfers and getAccountData snapshot proof. It also follows the behaviour of the Javascript library more closely but it is not exactly the same. There is a difference in how these commands behave on addresses with balances and without transactions. I opened a ticket in the JavaScript GitHub repository where I documented the behaviour of the JavaScript library on such addresses (iotaledger/iota.js#427). As I stated in this ticket I think that the behaviour of the JavaScript library is in these cases a bit strange and I think that my suggestion that I also implemented in this PR is more logical. There has been no response so far but maybe @lzpap could help to coordinate how the commands should behave for addresses with balance and without transactions?