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

feature(data_structures): switch block time when v2.0 activates #2473

Closed

Conversation

drcpu-github
Copy link
Collaborator

@drcpu-github drcpu-github commented Jun 21, 2024

This aims to enable switching block time when v2.0 activates. I tested this on a local testnet and it seems to behave properly, but this is obviously a complicated feature.

The most straightforward way to test this feature is probably to add this piece of code in defaults.rs and spin up some nodes:

    fn protocol_versions(&self) -> HashMap<ProtocolVersion, (Epoch, u16)> {
        // [(ProtocolVersion::V1_7, (0, 45))].into_iter().collect()
        [
            (ProtocolVersion::V1_7, (0, 45)),
            (ProtocolVersion::V1_8, (10, 45)),
            (ProtocolVersion::V2_0, (20, 20)),
        ]
        .into_iter()
        .collect()
    }

@aesedepece
Copy link
Member

Merged as 7077e79

@aesedepece aesedepece closed this Jul 16, 2024
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