Code Monkey home page Code Monkey logo

piggies's People

Contributors

danuker avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

piggies's Issues

Finish BTC support

Still need to do the following, for PiggyBTC:

  • Manually test the transactions_since method with real data from the wallet
  • Manually test perform_transaction, and remove the "not tested enough" error.

XMR support

  • Rewrite transactions_since to remove Pandas dependency
  • Update Monero wallet to 0.12, and manually test functionality

ETH Support

Add Ethereum support (sending & receiving Ether).

Note: In order to support transactions_since for Ether, we need to use QuickBlocks Etherchain, because Ethereum clients don't have the plumbing to show you the transaction history.

BTC: Not always starting soon enough

We use Popen for Electrum's daemon start command, and we don't wait for it to load completely. The process forks, and it would be very hard to monitor its child.

This causes the problem that the script tries to load a wallet before the daemon is loaded.

To do: send RPC requests every second, waiting for a response from the daemon. When we get a response, it means it loaded. Only then you can continue the commands (loading the wallet...)

Closing XMR wallet breaks jsonrpclib

When attempting to close the XMR wallet (server.stop_wallet()), the response received by jsonrpclib is None, and it can't get its result.

This only happens sometimes.

Find out why and fix it, so that we can make sure the wallet is stopped.

Stopping RPC server for XMR...
Traceback (most recent call last):
  File "./demo.py", line 87, in <module>
    main()
  File "./demo.py", line 81, in main
    mp.stop_servers()
  File "/home/dan/PycharmProjects/Piggies/piggies/master_piggy.py", line 55, in stop_servers
    self.piggies[p].stop_server()
  File "/home/dan/PycharmProjects/Piggies/piggies/piggy_xmr.py", line 146, in stop_server
    self.server.stop_wallet()
  File "/usr/local/lib/python2.7/dist-packages/jsonrpclib/jsonrpc.py", line 290, in __call__
    return self.__send(self.__name, kwargs)
  File "/usr/local/lib/python2.7/dist-packages/jsonrpclib/jsonrpc.py", line 239, in _request
    return response['result']
TypeError: 'NoneType' object has no attribute '__getitem__'

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.