-
Notifications
You must be signed in to change notification settings - Fork 681
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
Fix: atlas attachment serving + broken test #2390
Conversation
@@ -387,7 +387,7 @@ impl AtlasDB { | |||
content_hash: &Hash160, | |||
) -> Result<Option<Attachment>, db_error> { | |||
let hex_content_hash = to_hex(&content_hash.0[..]); | |||
let qry = "SELECT content, hash FROM attachments WHERE hash = ?1 AND was_instantiated = 0" | |||
let qry = "SELECT content, hash FROM attachments WHERE hash = ?1 AND was_instantiated = 1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There haven't been any attachments propagated to the mainnet network yet, right? i.e. We're certain this change isn't going to break anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The BNS endpoints + registrar not being live at this point, the only interactions that happened with the contract were internal tests (https://explorer.stacks.co/txid/SP000000000000000000002Q6VF78.bns?chain=mainnet)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; just had one question I need some clarity on first.
@@ -16,9 +16,6 @@ jobs: | |||
DOCKER_BUILDKIT: 1 | |||
run: docker build -f ./.github/actions/bitcoin-int-tests/Dockerfile.bitcoin-tests . | |||
atlas-test: | |||
# disable this job/test for now, since we haven't seen this pass | |||
# on github actions in a while | |||
if: ${{ false }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
After investigation, it turns out the atlas test was broken for a good reason.
namespace-preorder
contract call was failing.