Giter Club home page Giter Club logo

minipos's People

Contributors

simon-v avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

minipos's Issues

os.chdir DOESN'T work on Windows - Error 123

D:\Python - maquina virtual POS\minipos>python minipos
Traceback (most recent call last):
  File "minipos", line 20, in <module>
    os.chdir(os.path.dirname(__file__))
WindowsError: [Error 123] A sintaxe do nome do arquivo, do nome do diret¾rio ou do r¾tulo do volume estß incorreta: ''

Premature payment confirmation when reusing addresses

When a payment is requested to a recently used address, and the transaction is still in the mempool, there is a chance that the previous payment will trigger a confirmation of the new payment as soon as the invoice is displayed. The reason for this is that the previous transaction hadn't propagated to some of block explorers yet, which causes them to report the old balance, which is then used as the basis for the payment request. An additional problem, that makes solving this issue harder than necessary is the fact that some block explorers return the current time as the timestamp of any unconfirmed transaction, instead of the time when the it was first seen. This makes identifying "new" transactions unreliable.

New addresses (i.e., previously unused or newly generated via an xpub) are not affected.

Possible ways to solve this issue include:

  • Requesting block explorer operators to update their software to return a reliable transaction timestamp;
  • Keeping track of address balances ourselves;
  • Using a fancy wait-for-transaction API call i once saw mentioned;
  • Rewriting the explorer polling code to poll bitcoin nodes directly instead, i.e., making an SPV wallet;
  • Explicitly forbidding address reuse, except, maybe, for very old addresses.

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.