added showblocks script
This commit is contained in:
		
							parent
							
								
									57225f57f0
								
							
						
					
					
						commit
						1e7d7840b1
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		
							
								
								
									
										11
									
								
								scripts/show-blocks.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								scripts/show-blocks.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | import sys | ||||||
|  | import os | ||||||
|  | import stem | ||||||
|  | 
 | ||||||
|  | if not os.path.exists('onionr.sh'): | ||||||
|  |     os.chdir('../') | ||||||
|  | sys.path.append("src/") | ||||||
|  | from coredb.blockmetadb import get_block_list | ||||||
|  | 
 | ||||||
|  | for bl in get_block_list(): | ||||||
|  |     print(bl) | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue