mirror of
				https://github.com/ChristopherA/Learning-Bitcoin-from-the-Command-Line.git
				synced 2025-10-31 02:17:24 +00:00 
			
		
		
		
	Use javascript lang on the snippet
This commit is contained in:
		
							parent
							
								
									d875019341
								
							
						
					
					
						commit
						6715a51fe8
					
				| @ -93,6 +93,8 @@ $ npm install -g bitcointest | |||||||
| After installing `bitcointest`, you can create the `test.js` file with the following content: | After installing `bitcointest`, you can create the `test.js` file with the following content: | ||||||
| ``` | ``` | ||||||
| $ nano test.js | $ nano test.js | ||||||
|  | ``` | ||||||
|  | ```javascript | ||||||
| const { BitcoinNet, BitcoinGraph } = require('bitcointest'); | const { BitcoinNet, BitcoinGraph } = require('bitcointest'); | ||||||
| net = new BitcoinNet('/usr/local/bin', '/tmp/bitcointest/', 22001, 22002); | net = new BitcoinNet('/usr/local/bin', '/tmp/bitcointest/', 22001, 22002); | ||||||
| graph = new BitcoinGraph(net); | graph = new BitcoinGraph(net); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user