-
Notifications
You must be signed in to change notification settings - Fork 679
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
[Stacks 2.1] The /v2/pox
endpoint never switches to PoX-2
#3262
Comments
As a related question: is checking for As in, what is the recommended approach to determining if Right now, it seems like the work-around for clients is something like: async function isPoX2Ready(): Promise<boolean> {
const req = await fetch(`/v2/data_var/ST000000000000000000002AMW42H/pox-2/configured?proof=0`);
const body = await req.text();
if (req.ok) {
return JSON.parse(body)['data'] === '0x03'; // Clarity boolean-true
} else if (req.status === 404 && body === 'Data var not found') {
return false;
} else {
throw new Error(`Unexpected response: ${req.status} - ${body}`);
}
} |
This code simply hasn't been written yet. |
This was fixed in #3278 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When running with the latest
next
branch, theGET /v2/pox
endpoint always returns{"contract_id":"ST000000000000000000002AMW42H.pox"}
regardless of the epoch or cycle.The expected behavior is that this should return
{"contract_id":"ST000000000000000000002AMW42H.pox-2"}
when ready after the 2.1 epoch.The text was updated successfully, but these errors were encountered: