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

chore: select 2.05 xenon testnet start height, dead code elimination #2928

Merged
merged 7 commits into from
Nov 15, 2021

Conversation

kantai
Copy link
Member

@kantai kantai commented Nov 15, 2021

This picks a 2.05 xenon/testnet start height, and does some dead code elimination

This implements #2889

src/core/mod.rs Outdated
Comment on lines 367 to 346
end_height: STACKS_2_0_LAST_BLOCK_TO_PROCESS + 1,
end_height: BITCOIN_TESTNET_STACKS_2_05_BURN_HEIGHT,
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that the prior value of end_height here would have made the next-costs branch broken when running on Xenon testnet: the end_height is long before the first bitcoin block height that the testnet considers

@kantai kantai self-assigned this Nov 15, 2021
Copy link
Member

@jcnelson jcnelson left a comment

Choose a reason for hiding this comment

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

LGTM! Do you also want to set the mainnet block height for 2.05 here in this PR, or do you want that to be separate?

@kantai
Copy link
Member Author

kantai commented Nov 15, 2021

LGTM! Do you also want to set the mainnet block height for 2.05 here in this PR, or do you want that to be separate?

Done!

Copy link
Contributor

@gregorycoppola gregorycoppola left a comment

Choose a reason for hiding this comment

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

@kantai can we get a clean change for the new height? And do the dead code elimination in separate PR? For easier review and possible future anthropology?

@gregorycoppola
Copy link
Contributor

Oh i see Jude already lgtmed.. nevermind the idea of splitting in up if it's more overhead @kantai

src/core/mod.rs Outdated

pub const BITCOIN_TESTNET_FIRST_BLOCK_HEIGHT: u64 = 2000000;
pub const BITCOIN_TESTNET_FIRST_BLOCK_TIMESTAMP: u32 = 1622691840;
pub const BITCOIN_TESTNET_FIRST_BLOCK_HASH: &str =
"000000000000010dd0863ec3d7a0bae17c1957ae1de9cbcdae8e77aad33e3b8c";
pub const BITCOIN_TESTNET_STACKS_2_05_BURN_HEIGHT: u64 = 2_104_076;
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Seems like it, is that intentional @kantai ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep -- good catch -- updated to 2104380 -- that's the current block height (2104096) + 284, which should be about 48 hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants