-
Notifications
You must be signed in to change notification settings - Fork 100
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
Expose counter for getnativecontracts #900
Expose counter for getnativecontracts #900
Conversation
…ject#852 Reuse the same model and have updatecounter in the output. All the other fields were the same already, so old RpcClient can get results without any problems. Signed-off-by: Roman Khimov <[email protected]>
Now it's exactly the same server-side, so can be reused. Notice that UpdateCounter trick allows to parse responses from old servers (that are lacking "updatecounter" for this call), this simplifies upgrade, but can be removed in future versions. Signed-off-by: Roman Khimov <[email protected]>
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
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 will compile everything and test here today or tomorrow.
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.
Please update RpcClient
.
@@ -1,47 +0,0 @@ | |||
// Copyright (C) 2015-2024 The Neo Project. |
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.
Please put this back. RpcClient
needs 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.
Simpler and better
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'm too slow, but it's a really nice way.
neo-project/neo#2905 is incomplete without it.