Skip to content
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

Introduce addtransaction JSON-RPC, remove unnecessary others #1712

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

jrick
Copy link
Member

@jrick jrick commented Apr 14, 2020

This adds a new JSON-RPC method to manually add a transaction to the
wallet and record it mined in a block. This is particularly useful
for the upcoming VSP design which will require spending transaction
outputs from transactions which have already been mined by the time a
private key was imported. Though it is possible to record these
transaction using a rescan, this is more work for voting wallets which
should avoid long database updates as much as possible.

The addticket and stakepooluserinfo RPCs are removed in this change.
addticket usage can be replaced with addtransaction.
stakepooluserinfo is no longer used by stakepoold to decide what
tickets shall be voted for, and is therefore no longer needed. Any
remaining use of stakepooluserinfo by dcrstakepool should be replaced
by stakepoold itself providing the hashes of tickets it will vote
with.

This adds a new JSON-RPC method to manually add a transaction to the
wallet and record it mined in a block.  This is particularly useful
for the upcoming VSP design which will require spending transaction
outputs from transactions which have already been mined by the time a
private key was imported.  Though it is possible to record these
transaction using a rescan, this is more work for voting wallets which
should avoid long database updates as much as possible.

The addticket and stakepooluserinfo RPCs are removed in this change.
addticket usage can be replaced with addtransaction.
stakepooluserinfo is no longer used by stakepoold to decide what
tickets shall be voted for, and is therefore no longer needed.  Any
remaining use of stakepooluserinfo by dcrstakepool should be replaced
by stakepoold itself providing the hashes of tickets it will vote
with.
@jrick jrick merged commit 52ab64d into decred:master Apr 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants