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

Preview command breaking ord #1484

Closed
dworak-dev opened this issue Feb 3, 2023 · 7 comments
Closed

Preview command breaking ord #1484

dworak-dev opened this issue Feb 3, 2023 · 7 comments

Comments

@dworak-dev
Copy link

After running ord preview command ord doesn't work anymore.

After inspecting the code I'm thinking it might have to do with this line in whic the regtest network is hardcoded. My best guess is that trying to open bitcoind with another network is somehow messing the ord indexes or something.

https://github.com/casey/ord/blob/938b5cc97d48d026fd9250eae661d1e87286b377/src/subcommand/preview.rs#L35

I'm not experienced in rust but trying to do what I can to fix it.

@dworak-dev
Copy link
Author

I deleted the index.redb file and it's re-indexing again, so it makes that indeed the db indexes got messed up with the mix of network.

I think that will fix it for now. For anyone wondering, the file is located in .local/share/ord/index.redb

@casey
Copy link
Collaborator

casey commented Feb 3, 2023

What error message are you getting? It's hard to know what's going on without an error message to go off of. Please feel free to reopen with the message.

@casey casey closed this as completed Feb 3, 2023
@dworak-dev
Copy link
Author

After running the ord preview command once any other command (such as ord wallet balance or ord index) that requieres indexes didn't work at all. No error log, no output, nothing, just blank cursor.

Is it normal that regtest network is hardcoded on the preview command?

@casey
Copy link
Collaborator

casey commented Feb 3, 2023

Is it normal that regtest network is hardcoded on the preview command?

Yup! preview spins up a temporary regtest node, publishes the passed inscriptions to that node, and runs an ord server so you can preview them.

I'm not sure if ord commands not working was related, since it uses a tempdir for the data dir, but who knows! I'll repopen this issue for visibility.

@casey casey reopened this Feb 3, 2023
@dworak-dev
Copy link
Author

I understand now. Thanks for the clarification!

@casey
Copy link
Collaborator

casey commented Feb 3, 2023

You bet!

@kvnn
Copy link

kvnn commented Feb 20, 2023

I believe I encountered this issue. See https://github.com/casey/ord/issues/1809

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

No branches or pull requests

3 participants