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

Consider DCP0012 in VSP fee calculations. #435

Merged
merged 2 commits into from
Sep 16, 2023

Conversation

jholdstock
Copy link
Member

Upgrade the dcrwallet dependency to pick up the new version of txrules.StakePoolTicketFee which considers the status of DCP0012 in its fee calculation.

@@ -37,6 +40,9 @@ var MainNet = Network{
// DCP0010Height on mainnet is block
// 00000000000000002f4c6aaf0e9cb4d5a74c238d9bf8b8909e2372776c7c214c.
DCP0010Height: 657280,
// DCP0012Height on mainnet is block
// 071683030010299ab13f139df59dc98d637957b766e47f8da6dd5ac762f1e8c7.
Copy link
Member

Choose a reason for hiding this comment

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

Confirmed.

$ dcrctl getblockchaininfo | jq -c '.deployments.changesubsidysplitr2 | {status,since}'
{"status":"active","since":794368}

$ dcrctl getblockchaininfo | jq '.deployments.changesubsidysplitr2.since' | dcrctl getblockhash -
071683030010299ab13f139df59dc98d637957b766e47f8da6dd5ac762f1e8c7

@@ -51,6 +57,9 @@ var TestNet3 = Network{
// DCP0010Height on testnet3 is block
// 000000000000c7fd75f2234bbff6bb81de3a9ebbd2fdd383ae3dbc6205ffe4ff.
DCP0010Height: 877728,
// DCP0012Height on testnet3 is block
// c7da7b548a2a9463dc97adb48433c4ffff18c3873f7e2ae99338a990dae039f0.
Copy link
Member

Choose a reason for hiding this comment

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

Confirmed

$ dcrctl --testnet getblockchaininfo | jq -c '.deployments.changesubsidysplitr2 | {status,since}'
{"status":"active","since":1170048}

$ dcrctl --testnet getblockchaininfo | jq '.deployments.changesubsidysplitr2.since' | dcrctl --testnet getblockhash -
c7da7b548a2a9463dc97adb48433c4ffff18c3873f7e2ae99338a990dae039f0

The activation heights for DCP0012 are known for mainnet and testnet so
they can be hard-coded.
Upgrade the dcrwallet dependency to pick up the new version of
txrules.StakePoolTicketFee which considers the status of DCP0012 in its
fee calculation.
@jholdstock jholdstock merged commit 74729c6 into decred:master Sep 16, 2023
2 checks passed
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.

None yet

3 participants