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

Puppet chain fails to mine Stacks blocks if other BTC wallet imported #1117

Closed
hstove opened this issue Aug 4, 2023 · 1 comment
Closed
Assignees

Comments

@hstove
Copy link
Contributor

hstove commented Aug 4, 2023

Describe the bug

I have been experimenting with running Ordinals (via ord) locally in a regtest environment, using clarinet integrate.

For the most part, this has been smooth enough. I'm able to connect to the Bitcoin node and index the regtest chain. However, once I set up an ord wallet, no Stacks blocks are able to be mined. Looking at the logs, the miner fails with "unable to fetch UTXOs". This seems to be because ord is creating a "native" Bitcoin core wallet, and I assume the Stacks miner is doing the same.

To Reproduce

  • Run clarinet integrate
  • Create an ord wallet in regtest
    • This example uses the default wallet_1 mnemonic, but it doesn't matter what you use
    • ord --bitcoin-rpc-user devnet --bitcoin-rpc-pass devnet --chain regtest wallet restore "sell invite acquire kitten bamboo drastic jelly vivid peace spawn twice guilt pave pen trash pretty park cube fragile unaware remain midnight betray rebuild"
  • Notice that no more Stacks blocks are mined when Bitcoin blocks are mined

Workaround

Note that this has a relatively simple workaround:

bitcoin-cli -rpcpassword=devnet -rpcuser=devnet -rpcport=18443 unloadwallet ord

This will allow the Stacks miner to continue. So, it's kind of a pain if I'm testing making inscriptions, but it's not a dealbreaker.

Final thoughts

  • Can you (easily) configure the puppet chain miner to use a labeled wallet?
  • This is a pretty niche "bug", so I don't expect there to be a fix deployed, unless there is a very easy fix.
@hstove
Copy link
Contributor Author

hstove commented Aug 8, 2023

I'm going to close this issue, because now I'm seeing that the unloadwallet command completely fixes the issue. For others interested in running ord on regtest, hopefully this info helps!

@hstove hstove closed this as completed Aug 8, 2023
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in DevTools Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants