mirror of
				https://git.wownero.com/wownero/wownero.git
				synced 2024-08-15 01:03:23 +00:00 
			
		
		
		
	functional_tests: add rescan_spent/rescan_blockchain tests
This commit is contained in:
		
							parent
							
								
									4ba8254a1d
								
							
						
					
					
						commit
						f2e811fced
					
				
					 2 changed files with 60 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -890,6 +890,27 @@ class Wallet(object):
 | 
			
		|||
        }
 | 
			
		||||
        return self.rpc.send_json_rpc_request(set_account_tag_description)
 | 
			
		||||
 | 
			
		||||
    def rescan_blockchain(self, hard = False):
 | 
			
		||||
        rescan_blockchain = {
 | 
			
		||||
            'method': 'rescan_blockchain',
 | 
			
		||||
            'jsonrpc': '2.0',
 | 
			
		||||
            'params': {
 | 
			
		||||
                'hard': hard,
 | 
			
		||||
            },
 | 
			
		||||
            'id': '0'
 | 
			
		||||
        }
 | 
			
		||||
        return self.rpc.send_json_rpc_request(rescan_blockchain)
 | 
			
		||||
 | 
			
		||||
    def rescan_spent(self):
 | 
			
		||||
        rescan_spent = {
 | 
			
		||||
            'method': 'rescan_spent',
 | 
			
		||||
            'jsonrpc': '2.0',
 | 
			
		||||
            'params': {
 | 
			
		||||
            },
 | 
			
		||||
            'id': '0'
 | 
			
		||||
        }
 | 
			
		||||
        return self.rpc.send_json_rpc_request(rescan_spent)
 | 
			
		||||
 | 
			
		||||
    def make_uri(self, address = '', payment_id = '', amount = 0, tx_description = '', recipient_name = ''):
 | 
			
		||||
        make_uri = {
 | 
			
		||||
            'method': 'make_uri',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue