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

rpcserver: Do not rebroadcast stake transactions. #973

Merged
merged 1 commit into from
Jan 17, 2018

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Jan 17, 2018

This modifies the sendrawtransaction handler to avoid adding stake transactions to the rebroadcast logic since they should not be perpetually rebroadcast without special handling to remove them under certain circumstances other than showing up in a block.

This is particularly applicable to votes which are only valid for a specific block and are time sensitive, but it also applies to ticket purchases which are only valid for the duration of a stake difficulty interval, and revocations which could be invalidated in a reorg due to the associated missed or expired ticket being resurrected in a reorg.

Copy link
Member

@dnldd dnldd left a comment

Choose a reason for hiding this comment

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

Ok

This modifies the sendrawtransaction handler to avoid adding stake
transactions to the rebroadcast logic since they should not be
perpetually rebroadcast without special handling to remove them under
certain circumstances other than showing up in a block.

This is particularly applicable to votes which are only valid for a
specific block and are time sensitive, but it also applies to ticket
purchases which are only valid for the duration of a stake difficulty
interval, and revocations which could be invalidated in a reorg due to
the associated missed or expired ticket being resurrected in a reorg.
@davecgh davecgh force-pushed the rpc_no_rebroadcast_stake_txns branch from de9ca11 to 35b6f06 Compare January 17, 2018 22:32
@davecgh davecgh merged commit 35b6f06 into decred:master Jan 17, 2018
@davecgh davecgh deleted the rpc_no_rebroadcast_stake_txns branch January 17, 2018 22:44
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.

4 participants