root / trunk / pyopencoin / testWalletIS.py

Revision 200, 293 bytes (checked in by ocmathew, 4 years ago)

Implement SocketServerHandler?, the autolistening and responding handler of the incoming socket, and creator of SocketServerTransport?.

  • Property svn:executable set to *
Line 
1from oc import entities,transports 
2import sys
3
4if len(sys.argv) > 1:
5    addr = sys.argv[1]
6else:
7    addr = '0.0.0.0'
8
9w = entities.Wallet()
10sst = transports.SocketClientTransport(addr, 12008)
11sst.debug = 1
12
13w.fetchMintKey(sst, denominations=['1'])
14w.fetchMintKey(sst, denominations=['4'])
Note: See TracBrowser for help on using the browser.