Comments (4)
After some testing and debugging, I'm able to reproduce the problem. It seems to be a CORS issue, when sending btc, kkclient tries to estimate the current fee using blkhub.net(which is just a mirror of btc-fee.net).
I forgot to add it to the permissions section of the manifest.json
so when the query is made it gets rejected by the browser causing the extension to just return 0 value to the frontend. A quick simple fix is to edit manifest.json
and add this in the permissions section:
"permissions":
[
"https://blkhub.net/*",
"https://shapeshift.io/*",
"https://*.trezor.io/api/*
...
Then just reload the extension so the changes take effect.
Extra note, you can change which fee estimating service to use in config.js
look for selectedFeeService
field. The original keepkey extension used earn.com
, coinquery.com
and blockcypher.com
but I found them to be too overly aggressive often overpaying unnecessarily.
I added btc-fee.net
and blkhub.net
as an alternative for a more sane fee estimate but forgot to give extension permission to query those sites.
from kkclient.
Thanks for your investigation, this fixed the issue for me indeed. Maybe the error handling when the BTC fee cannot be retrieved can also be a bit improved, because the current one (where it takes the values of an unrelated sub-account) seems a bit risky. For example, if it sends the BTC TX using the BTG fee values (like it did with the Max value) when blkhub is down, it can result in large losses.
from kkclient.
Had the same problem myself and was pulling my hair out until I saw this post.
The blkhub added to permissions fixed everything.
Thanks GW for keeping this up to date and all the improvements, much appreciated.
from kkclient.
you welcome.
from kkclient.
Related Issues (6)
- Monero support? HOT 2
- Chrome Error: window.localStorage is not available in packaged apps. Use chrome.storage.local instead. HOT 1
- Conflicting Application: There is another application running that conflicts with keepkey client HOT 13
- KeepKey v7.1.0 not being detected HOT 2
- bitcoinfees.earn.com API is giving bad data on fees HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kkclient.