Giter VIP home page Giter VIP logo

Comments (4)

greatwolf avatar greatwolf commented on August 19, 2024

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.

kroese avatar kroese commented on August 19, 2024

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.

MarkB-UK avatar MarkB-UK commented on August 19, 2024

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.

greatwolf avatar greatwolf commented on August 19, 2024

you welcome.

from kkclient.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.