- Timestamp:
- 05/31/09 13:13:02 (3 years ago)
- Files:
-
- 1 modified
-
trunk/sandbox/jhb/mobile/ocwallet.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/sandbox/jhb/mobile/ocwallet.py
r320 r321 387 387 bt.send(self.wallet.listenSum(bt.receive())) 388 388 self.feedback(u'Receive coins: receiving...') 389 bt.send(self.wallet.listenSpend( bt.receive(),transport))389 bt.send(self.wallet.listenSpend(transport,bt.receive())) 390 390 import e32 391 391 e32.ao_sleep(1) … … 555 555 #Try to use a password on the data file. Repeat till its sucessfully loaded 556 556 password = '' 557 wbpath = storagepath+'wallet.bin' 558 557 559 while 0: #don't use the password protected storage, too slow atm. 558 560 password = appuifw.query(u'password','text') … … 563 565 storage = oc2storage.CryptedStorage() 564 566 storage.setPassword(password) 565 storage.setFilename( storagepath+'wallet.bin')567 storage.setFilename(wbpath) 566 568 try: 567 569 storage.restore() … … 571 573 pass 572 574 storage = oc2storage.Storage() 573 storage.setFilename(storagepath+'wallet.bin') 574 tmp = open(storagepath+'wallet.bin') 575 tmpcontent = tmp.read() 576 tmp.close() 577 if tmpcontent.startswith('salt'): 578 os.remove(storagepath+'wallet.bin') 575 storage.setFilename(wbpath) 576 if os.path.exists(wbpath): 577 tmp = open(wbpath) 578 tmpcontent = tmp.read() 579 tmp.close() 580 if tmpcontent.startswith('salt'): 581 os.remove(wbpath) 579 582 storage.restore() 580 583
