-
Notifications
You must be signed in to change notification settings - Fork 174
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
'Type' is the only field in listtransactions that is capitalised #2419
Comments
I can see this issue not only affecting internal RPC operations within the wallet but also external operations. Namely my wallet bot and possibly other services. The reason I bring this up is I think this issue needs to be made as obvious as possible in the changelog for the release this fix come in. |
Yes. And it must wait until a mandatory release and be given notice beforehand. |
Should be merged with #527 in my opinion. |
I partially agree. I am not in favor of as radical a change as #527 advocates, as changing key names introduces unnecessary disruption. As @delta1513 in Discord suggested, this whole thing gets to be a little OCD like. |
I vote for pulling the bandage off swiftly in this case. This is a non-brainer for non-Gridcoin-specific RPCs(I haven't verified if any exists, but I assume after not following upstream for a while we're bound to deviate especially for commands with Gridcoin extensions) however it is also better to do it as more time goes on it'll be harder to change as the usage of the RPCs grows by time in my opinion. Code-wise, we'll have to touch every RPC when porting the modern RPC framework from Bitcoin anyways. I personally can do this and provide a script to ease transition if desired. Another argument for doing this in one go is that changing a single key already causes disruption, and the disruption does not scale linearly with each key changed. I love consistency and I believe it improves both new developers' experience but also future projects of old developers too. (But maybe I just have OCD, and this is a justification. ¯\_(ツ)_/¯ ) @startailcoon @bryhardt @delta1513 @sau412 I would like to hear your opinions as well as you are the people who's going to be most affected by such a change. |
Where we deviate from upstream for upstream compatible commands I agree. This advocated more than that.
…Sent from my iPhone
On Dec 29, 2021, at 6:32 PM, div72 ***@***.***> wrote:
I vote for pulling the bandage off swiftly in this case. This is a non-brainer for non-Gridcoin-specific RPCs(I haven't verified if any exists, but I assume after not following upstream for a while we're bound to deviate especially for commands with Gridcoin extensions) however it is also better to do it as more time goes on it'll be harder to change as the usage of the RPCs grows by time in my opinion. Code-wise, we'll have to touch every RPC when porting the modern RPC framework from Bitcoin anyways. I personally can do this and provide a script to ease transition if desired.
Another argument for doing this in one go is that changing a single key already causes disruption, and the disruption does not scale linearly with each key changed. I love consistency and I believe it improves both new developers' experience but also future projects of old developers too. (But maybe I just have OCD, and this is a justification. ¯\_(ツ)_/¯ )
@startailcoon @bryhardt @delta1513 @sau412 I would like to hear your opinions as well as you are the people who's going to be most affected by such a change.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were assigned.
|
I checked my code and I'm not using that field name anywhere. |
Bug Report
Current behavior
When running
listtransactions
via the wallet console or RPC, theType
field is capitalised as shown below in an example of one transaction.Expected behavior
When running
listtransactions
via the wallet console or RPC, theType
field should not be capitalised, ie, it should betype
.Steps to reproduce:
Run the
listtransactions
RPCGridcoin version
v5.3.2.0-unk
Machine specs
Irrelevant
The text was updated successfully, but these errors were encountered: