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

Feature Request: GUI block height should detect manually mined blocks using bitcoin-cli #1049

Open
ZZiigguurraatt opened this issue Nov 14, 2024 · 1 comment
Labels
enhancement New feature or request needs planning Talk to maintainers before working on this up for grabs Anyone can work on this

Comments

@ZZiigguurraatt
Copy link

Running bitcoin-cli generatetoaddress to mine blocks does not increase the block height shown in the GUI.

However, we can check the current block height by running bitcoin-cli getblockchaininfo and see that the command actually worked.

If we click "Quick Mine" in the GUI, it will update to include the blocks that were mined through the command line.

@ZZiigguurraatt ZZiigguurraatt added the bug Something isn't working label Nov 14, 2024
@jamaljsr
Copy link
Owner

Yes, this is somewhat intentional. Polar doesn't subscribe to events occurring on the bitcoind node. So if a block is mined outside of the Polar UI (via CLI or RPC), the block height will not automatically update in the UI. There may be ways to implement this via the bitcoind ZMQ ports or with polling. When you click "Quick Mine", Polar knows to fetch the latest block height after RPC call to bitcoind to mine a block so that the UI reflects the chain. But when things are triggered outside of the Polar UI, you have to tell it to fetch the latest state by click on the "Refresh" button.

I will leave this issue open as a future enhancement, since I wouldn't classify this as a bug.

@jamaljsr jamaljsr added enhancement New feature or request up for grabs Anyone can work on this needs planning Talk to maintainers before working on this and removed bug Something isn't working labels Nov 15, 2024
@jamaljsr jamaljsr changed the title Bug: GUI block height does not detect manually mined blocks using bitcoin-cli Feature Request: GUI block height should detect manually mined blocks using bitcoin-cli Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs planning Talk to maintainers before working on this up for grabs Anyone can work on this
Projects
None yet
Development

No branches or pull requests

2 participants