Skip to content

Note that the prioritizetransaction dummy value is deprecated, and has no meaning - #10488

Merged
laanwj merged 1 commit into
bitcoin:masterfrom
TheBlueMatt:2017-05-dummy-api
Jun 12, 2017
Merged

laanwj merged 1 commit into
bitcoin:masterfrom
TheBlueMatt:2017-05-dummy-api

Conversation

@TheBlueMatt

Copy link
Copy Markdown
Contributor

This is an alternative version of #10252, explaining that the first value is "dummy" instead of adding more references to priority now that we've removed it.

Comment thread src/rpc/mining.cpp Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Typo: Compaibility

Comment thread src/rpc/client.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This breaks the API compatibility...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I dont think we care for position-independant arguments? They're still super new and I would be highly surprised if anyone is prioritizing by priority in 0.14, where its highly unsupported and disabled by default?

@jnewbery jnewbery left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tested ACK 99445847d43da86724aa49ef193f57c63a97f17b . A couple of documentation suggestions inline.

Comment thread src/rpc/mining.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

adjustment thereof sounds a little tortured to me. How about The second argument must be set to 0.0

(simpler English and specifies precisely what the argument should be set to)

Comment thread src/rpc/mining.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggest you add a note that the second (dummy) argument is deprecated and may be removed in a future version. Clients should change to calling this RPC with named fee_delta argument if possible for forward compatibility.

@maflcko

maflcko commented Jun 6, 2017

Copy link
Copy Markdown
Member

Needs rebase if still relevant

@TheBlueMatt

Copy link
Copy Markdown
Contributor Author

Rebased.

Comment thread src/rpc/mining.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Using named arguments, "first argument" may be confusing. Also suggest the recommendation should be null, not 0.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Comment thread src/rpc/mining.cpp Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This breaks the API compatibility. IMO leave it alone here, and just update the help.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Compatibility is already broken, as we require priority_delta==0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hmm, good point.

The "priority" field should be appropriately marked as a "dummy"
value and noted that it is deprecated and will likely be removed.

@ryanofsky ryanofsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

utACK 40796e1.

Maybe rename PR to something like "Improve documentation for prioritisetransaction" since this isn't really about restoring API compatibility anymore.

Also, if you wanted to update the release notes here to mention the priority_delta->dummy rename, and requirement to pass 0 or null, that would be good.

@TheBlueMatt TheBlueMatt mentioned this pull request Jun 9, 2017
12 tasks done
@TheBlueMatt

Copy link
Copy Markdown
Contributor Author

Mentioned the release notes at #9889, updated PR title.

@TheBlueMatt TheBlueMatt changed the title RPC/Mining: Restore API compatibility for prioritisetransaction Note that the prioritizetransaction dummy value is deprecated, and has no meaning Jun 9, 2017
@sipa

sipa commented Jun 9, 2017

Copy link
Copy Markdown
Member

utACK 40796e1

@laanwj

laanwj commented Jun 12, 2017

Copy link
Copy Markdown
Member

utACK 40796e1

@laanwj
laanwj merged commit 40796e1 into bitcoin:master Jun 12, 2017
laanwj added a commit that referenced this pull request Jun 12, 2017
…ecated, and has no meaning

40796e1 Remove references to priority that snuck back in in 870824e. (Matt Corallo)

Tree-SHA512: fd6f772a9fdf14b3b125e84a79059d7ab34b3571b35dc48f8d4b9f22ea71c6cdd4ae88c2e135ae317a16744c28dd23cf7f7dd88ea9d8b2d408e57845ef87d03b
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants