Exemplo n.º 1
0
   def setUp(self):
      TheBDM.Reset()
      self.shortlabel = 'TestWallet1'
      self.wltID ='3VB8XSoY' if USE_TESTNET else '3VB8XSmd' 
      
      self.fileA    = os.path.join(ARMORY_HOME_DIR, 'armory_%s_.wallet' % self.wltID)
      self.fileB    = os.path.join(ARMORY_HOME_DIR, 'armory_%s_backup.wallet' % self.wltID)
      self.fileAupd = os.path.join(ARMORY_HOME_DIR, 'armory_%s_backup_unsuccessful.wallet' % self.wltID)
      self.fileBupd = os.path.join(ARMORY_HOME_DIR, 'armory_%s_update_unsuccessful.wallet' % self.wltID)

      self.removeFileList([self.fileA, self.fileB, self.fileAupd, self.fileBupd])
   
      # We need a controlled test, so we script the all the normally-random stuff
      self.privKey   = SecureBinaryData('\xaa'*32)
      self.privKey2  = SecureBinaryData('\x33'*32)
      self.chainstr  = SecureBinaryData('\xee'*32)
      theIV     = SecureBinaryData(hex_to_binary('77'*16))
      self.passphrase  = SecureBinaryData('A self.passphrase')
      self.passphrase2 = SecureBinaryData('A new self.passphrase')
      
      self.wlt = PyBtcWallet().createNewWallet(withEncrypt=False, \
                                          plainRootKey=self.privKey, \
                                          chaincode=self.chainstr,   \
                                          IV=theIV, \
                                          shortLabel=self.shortlabel)
Exemplo n.º 2
0
 def setUpClass(self):
     # This is not a UI so no need to worry about the main thread being blocked.
     # Any UI that uses this Daemon can put the call to the Daemon on it's own thread.
     TheBDM.Reset()
     TheBDM.setBlocking(True)
     TheBDM.setOnlineMode(True)
     while not TheBDM.getBDMState() == 'BlockchainReady':
         time.sleep(2)
Exemplo n.º 3
0
 def setUp(self):
     TheBDM.Reset(wait=True)
Exemplo n.º 4
0
 def setUp(self):
     TheBDM.Reset()