Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Expose counter for getnativecontracts#900

Merged
vncoelho merged 2 commits intoneo-project:masterfrom
roman-khimov:expose-counter-for-getnativecontracts
May 3, 2024
Merged

Expose counter for getnativecontracts#900
vncoelho merged 2 commits intoneo-project:masterfrom
roman-khimov:expose-counter-for-getnativecontracts

Conversation

@roman-khimov
Copy link
Contributor

neo-project/neo#2905 is incomplete without it.

…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 <roman@nspcc.ru>
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 <roman@nspcc.ru>
Copy link
Member

@vncoelho vncoelho left a 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

Copy link
Member

@vncoelho vncoelho left a 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.

Copy link
Member

@cschuchardt88 cschuchardt88 left a 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.
Copy link
Member

@cschuchardt88 cschuchardt88 May 2, 2024

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.

Copy link
Member

@shargon shargon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simpler and better

@vncoelho vncoelho merged commit 76e933e into neo-project:master May 3, 2024
@roman-khimov roman-khimov deleted the expose-counter-for-getnativecontracts branch May 3, 2024 18:16
Copy link
Member

@AnnaShaleva AnnaShaleva left a 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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants