danuker / piggies Goto Github PK
View Code? Open in Web Editor NEWA package to automatically manage your cryptocurrency wallets.
License: MIT License
A package to automatically manage your cryptocurrency wallets.
License: MIT License
Still need to do the following, for PiggyBTC:
transactions_since
method with real data from the walletperform_transaction
, and remove the "not tested enough" error.transactions_since
to remove Pandas dependencyAdd 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.
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...)
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__'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.