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

Electrs returns fee -1 [Docker getumbrel/electrs] #1113

Open
darkness-su opened this issue Nov 13, 2024 · 3 comments
Open

Electrs returns fee -1 [Docker getumbrel/electrs] #1113

darkness-su opened this issue Nov 13, 2024 · 3 comments

Comments

@darkness-su
Copy link

Running BTC to XMR atomic swaps using configuration from:
https://github.com/UnstoppableSwap/asb-docker-compose

When calling estimate_fee, Electrs (Docker image getumbrel/electrs) returns -1 despite not showing any errors and bitcoind being 100% synchronized

Only warning that appears:
mainnet_electrs | [2024-11-13T05:29:09.030Z INFO electrs::electrum] your wallet uses less efficient method of querying electrs, consider contacting the developer of your wallet. Reason: blockchain.scripthash.get_history called for unsubscribed scripthash

@antonilol
Copy link
Contributor

-1 is sent back to the rpc client when estimate_fee returns Ok(None), estimate_fee forwards calls to bitcoind.
Does bitcoin-cli estimatesmartfee <blocks> return anything meaningful?

@darkness-su
Copy link
Author

darkness-su commented Nov 13, 2024

Currently it returns:

➜  mainnet git:(main) ✗ docker exec -it mainnet_bitcoind sh -c "bitcoin-cli -datadir=/bitcoind-data/ estimatesmartfee 3"
{
  "feerate": 0.00021084,
  "blocks": 3
}

@darkness-su
Copy link
Author

Edited above with correct output

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

2 participants