mirror of
				https://git.wownero.com/lza_menace/suchwow.git
				synced 2024-08-15 01:03:19 +00:00 
			
		
		
		
	add setup wallet file
This commit is contained in:
		
							parent
							
								
									7bd1ca54e6
								
							
						
					
					
						commit
						7c169ffb46
					
				
					 1 changed files with 35 additions and 3 deletions
				
			
		
							
								
								
									
										38
									
								
								bin/setup
									
										
									
									
									
								
							
							
						
						
									
										38
									
								
								bin/setup
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1,5 +1,37 @@
 | 
			
		|||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
python3 -m venv .venv
 | 
			
		||||
source .venv/bin/activate
 | 
			
		||||
pip3 install -r requirements.txt
 | 
			
		||||
set -e
 | 
			
		||||
set +x
 | 
			
		||||
 | 
			
		||||
# these are only used for local development
 | 
			
		||||
WALLET_PATH="$HOME/data/suchwow/wallet"
 | 
			
		||||
WALLET_PASS="sdfj209rFLJDF29ruafj2)__!a@"
 | 
			
		||||
WALLET_RPC_USER="suchwow"
 | 
			
		||||
WALLET_RPC_PASS="o1ije8je9f8h2o3m12e"
 | 
			
		||||
DAEMON_URI="http://node.suchwow.xyz:34568"
 | 
			
		||||
 | 
			
		||||
if [ ! -d "$WALLET_PATH" ]; then
 | 
			
		||||
  # initialize new wallet and retain seed
 | 
			
		||||
  docker run --rm -it --name suchwow-wallet-init \
 | 
			
		||||
    -v $WALLET_PATH:/root \
 | 
			
		||||
    lalanza808/wownero \
 | 
			
		||||
    wownero-wallet-cli \
 | 
			
		||||
      --daemon-address $DAEMON_URI \
 | 
			
		||||
      --generate-new-wallet /root/wow \
 | 
			
		||||
      --password $WALLET_PASS
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# setup rpc process
 | 
			
		||||
docker run --rm -d --name suchwow-wallet-rpc \
 | 
			
		||||
  -v $WALLET_PATH:/root \
 | 
			
		||||
  -p 8888:8888 \
 | 
			
		||||
  lalanza808/wownero \
 | 
			
		||||
  wownero-wallet-rpc \
 | 
			
		||||
    --daemon-address $DAEMON_URI \
 | 
			
		||||
    --wallet-file /root/wow \
 | 
			
		||||
    --password $WALLET_PASS \
 | 
			
		||||
    --rpc-bind-port 8888 \
 | 
			
		||||
    --rpc-bind-ip 0.0.0.0 \
 | 
			
		||||
    --confirm-external-bind \
 | 
			
		||||
    --rpc-login "$WALLET_RPC_USER:$WALLET_RPC_PASS" \
 | 
			
		||||
    --log-file /root/rpc.log
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue