File tree Expand file tree Collapse file tree 6 files changed +17
-23
lines changed Expand file tree Collapse file tree 6 files changed +17
-23
lines changed Original file line number Diff line number Diff line change 1
- # apt-get install docker.io
2
- # LOGIN: sudo docker login docker.io
3
- # BUILD: sudo docker build -t ainblockchain/blockchain-database .
4
- # RUN: sudo docker run -e STAKE=250 -e ACCOUNT_INDEX=0 -e HOSTING_ENV="gcp" -e TRACKER_WS_ADDR="ws://34.97.217.60:5000" --network="host" -d ainblockchain/blockchain-database:latest
5
- # PULL: sudo docker pull ainblockchain/blockchain-database
6
- # sudo docker exec -it <container-id> /bin/bash
7
1
FROM node:10.14
8
2
WORKDIR /app
9
3
COPY package.json /app
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " blockchain-database " ,
3
- "description" : " memory server + blockchain " ,
2
+ "name" : " ain-blockchain " ,
3
+ "description" : " AI Network Blockchain " ,
4
4
"version" : " 0.1.0" ,
5
5
"private" : true ,
6
- "license" : " Apache-2.0 " ,
7
- "author" : " dev@comcom .ai" ,
6
+ "license" : " MIT " ,
7
+ "author" : " dev@ainetwork .ai" ,
8
8
"repository" : {
9
9
"type" : " git" ,
10
- "url" : " https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git "
10
+ "url" : " https://github.com/ainblockchain/ain-blockchain "
11
11
},
12
12
"engines" : {
13
13
"node" : " >=8"
Original file line number Diff line number Diff line change 8
8
import copy
9
9
from time import sleep
10
10
####### PLEASE SET THESE VALUES BEFORE RUNNING TOOL ###########
11
- TOOL_LOCATION = '/home/chris/workspace/blockchain-database /tools/transaction-executor/bin/run'
11
+ TOOL_LOCATION = '/path/to/ain-blockchain /tools/transaction-executor/bin/run'
12
12
SERVER = 'http://localhost:8080'
13
13
TRANSFER_AMOUNT = 5
14
14
###############################################################
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
cd
3
- sudo rm -rf ../blockchain-database
4
- sudo mkdir ../blockchain-database
5
- sudo chmod 777 ../blockchain-database
6
- mv * ../blockchain-database
7
- cd ../blockchain-database
3
+ sudo rm -rf ../ain-blockchain
4
+ sudo mkdir ../ain-blockchain
5
+ sudo chmod 777 ../ain-blockchain
6
+ mv * ../ain-blockchain
7
+ cd ../ain-blockchain
8
8
npm install
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
cd
3
- sudo rm -rf ../blockchain-database
4
- sudo mkdir ../blockchain-database
5
- sudo chmod 777 ../blockchain-database
6
- mv * ../blockchain-database
7
- cd ../blockchain-database /tracker-server
3
+ sudo rm -rf ../ain-blockchain
4
+ sudo mkdir ../ain-blockchain
5
+ sudo chmod 777 ../ain-blockchain
6
+ mv * ../ain-blockchain
7
+ cd ../ain-blockchain /tracker-server
8
8
npm install
9
9
cd ..
Original file line number Diff line number Diff line change 1
1
2
2
BASEDIR=$( dirname " $0 " )
3
3
rm -rf $BASEDIR /blockchain/blockchains
4
- rm -rf $BASEDIR /client /logs
4
+ rm -rf $BASEDIR /logger /logs
5
5
killall node
6
6
You can’t perform that action at this time.
0 commit comments