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

Keep track of epoch in the test Datastore #438

Open
hugocaillard opened this issue Jul 12, 2024 · 0 comments
Open

Keep track of epoch in the test Datastore #438

hugocaillard opened this issue Jul 12, 2024 · 0 comments

Comments

@hugocaillard
Copy link
Collaborator

Since recent Clarity 3 changes, the data store (used in the tests in this project) needs to be able to return epoch information.

fn get_stacks_epoch(&self, _height: u32) -> Option<StacksEpoch> {
Some(StacksEpoch {
epoch_id: StacksEpochId::latest(),
start_height: 0,
end_height: u64::MAX,
block_limit: ExecutionCost::max_value(),
network_epoch: PEER_VERSION_EPOCH_2_1,
})
}

Right now, the Epoch ID is hard coded. For better tests, we may want to keep track of the epoch in the data store.
If that's useful, check clarinet implementation of this

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

No branches or pull requests

1 participant