Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit 2ef9774

Browse files
TreshKillinghide-on-bush-xBA-MikeJteslashibe
authored
v1.03 (#56)
* Updated docker image for ui -> built from linux os in github actions * Change blockperiod to 10s, change chainId to restart network (#80) * Update README.MD with new block time flag Co-authored-by: Hide on bush <[email protected]> Co-authored-by: BA-MikeJ <[email protected]> Co-authored-by: Brendan Playford <[email protected]>
1 parent 2040797 commit 2ef9774

File tree

8 files changed

+39
-6
lines changed

8 files changed

+39
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ For example; we name our node 'MasaMoonNode' by setting the flag `--identity Mas
186186
## Start the node
187187
In the `node` directory, start the node by running the following command:
188188
```
189-
PRIVATE_CONFIG=ignore geth --identity MasaMoonNode --datadir data --bootnodes enode://91a3c3d5e76b0acf05d9abddee959f1bcbc7c91537d2629288a9edd7a3df90acaa46ffba0e0e5d49a20598e0960ac458d76eb8fa92a1d64938c0a3a3d60f8be4@54.158.188.182:21000 --emitcheckpoints --istanbul.blockperiod 1 --mine --miner.threads 1 --syncmode full --verbosity 5 --networkid 190250 --rpc --rpccorsdomain "*" --rpcvhosts "*" --rpcaddr 127.0.0.1 --rpcport 8545 --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,quorum,istanbul --port 30300
189+
PRIVATE_CONFIG=ignore geth --identity MasaMoonNode --datadir data --bootnodes enode://91a3c3d5e76b0acf05d9abddee959f1bcbc7c91537d2629288a9edd7a3df90acaa46ffba0e0e5d49a20598e0960ac458d76eb8fa92a1d64938c0a3a3d60f8be4@54.158.188.182:21000 --emitcheckpoints --istanbul.blockperiod 10 --mine --miner.threads 1 --syncmode full --verbosity 5 --networkid 190250 --rpc --rpccorsdomain "*" --rpcvhosts "*" --rpcaddr 127.0.0.1 --rpcport 8545 --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,quorum,istanbul --port 30300
190190
```
191191
### Additional Bootnodes
192192
Masa operates several bootnodes, one is already included in the comnand above by default. If you are having issues connecting to the bootnode please use an alternaitve from the list below.

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ x-masa-testnet-node-v10-def:
2424
GENESIS_FILE="/network/genesis.json"
2525
CONSENSUS_RPC_API="istanbul"
2626
NETWORK_ID=$$(cat $${GENESIS_FILE} | grep chainId | awk -F " " '{print $$2}' | awk -F "," '{print $$1}')
27-
GETH_ARGS_istanbul="--emitcheckpoints --istanbul.blockperiod 1 --mine --miner.threads 1 --syncmode full"
27+
GETH_ARGS_istanbul="--emitcheckpoints --istanbul.blockperiod 10 --mine --miner.threads 1 --syncmode full"
2828
if [ ! -f $${DDIR}/control_file ]; then
2929
mkdir -p $${DDIR}/keystore
3030
mkdir -p $${DDIR}/geth
@@ -49,7 +49,7 @@ x-masa-testnet-node-v10-def:
4949
services:
5050
ui:
5151
extends:
52-
file: ./src/ui/docker-compose.yml
52+
file: ./ui/docker-compose.yml
5353
service: ui
5454
masa-node:
5555
<< : *masa-testnet-node-v10-def

network/testnet/genesis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"constantinopleBlock":0,
2424
"petersburgBlock": 0,
2525
"istanbulBlock": 0,
26-
"chainId": 190250,
26+
"chainId": 190260,
2727
"eip150Block": 0,
2828
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
2929
"eip155Block": 0,

node/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ For example; we name our node 'MasaMoonNode' by setting the flag `--identity Mas
9292
## Start the node
9393
In the `node` directory, start the node by running the following command:
9494
```
95-
PRIVATE_CONFIG=ignore geth --identity MasaMoonNode --datadir data --bootnodes enode://91a3c3d5e76b0acf05d9abddee959f1bcbc7c91537d2629288a9edd7a3df90acaa46ffba0e0e5d49a20598e0960ac458d76eb8fa92a1d64938c0a3a3d60f8be4@54.158.188.182:21000 --emitcheckpoints --istanbul.blockperiod 1 --mine --miner.threads 1 --syncmode full --verbosity 5 --networkid 190250 --rpc --rpccorsdomain "*" --rpcvhosts "*" --rpcaddr 127.0.0.1 --rpcport 8545 --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,quorum,istanbul --port 30300
95+
PRIVATE_CONFIG=ignore geth --identity MasaMoonNode --datadir data --bootnodes enode://91a3c3d5e76b0acf05d9abddee959f1bcbc7c91537d2629288a9edd7a3df90acaa46ffba0e0e5d49a20598e0960ac458d76eb8fa92a1d64938c0a3a3d60f8be4@54.158.188.182:21000 --emitcheckpoints --istanbul.blockperiod 10 --mine --miner.threads 1 --syncmode full --verbosity 5 --networkid 190250 --rpc --rpccorsdomain "*" --rpcvhosts "*" --rpcaddr 127.0.0.1 --rpcport 8545 --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,quorum,istanbul --port 30300
9696
```
9797
### Additional Bootnodes
9898
Masa operates several bootnodes, one is already included in the comnand above by default. If you are having issues connecting to the bootnode please use an alternaitve from the list below.

node/data/README.md

Whitespace-only changes.

src/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ For example; we name our node 'MasaMoonNode' by setting the flag `--identity Mas
9595
## Start the node
9696
In the `node` directory, start the node by running the following command:
9797
```
98-
PRIVATE_CONFIG=ignore geth --identity MasaMoonNode --datadir data --bootnodes enode://91a3c3d5e76b0acf05d9abddee959f1bcbc7c91537d2629288a9edd7a3df90acaa46ffba0e0e5d49a20598e0960ac458d76eb8fa92a1d64938c0a3a3d60f8be4@54.158.188.182:21000 --emitcheckpoints --istanbul.blockperiod 1 --mine --miner.threads 1 --syncmode full --verbosity 5 --networkid 190250 --rpc --rpccorsdomain "*" --rpcvhosts "*" --rpcaddr 127.0.0.1 --rpcport 8545 --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,quorum,istanbul --port 30300
98+
PRIVATE_CONFIG=ignore geth --identity MasaMoonNode --datadir data --bootnodes enode://91a3c3d5e76b0acf05d9abddee959f1bcbc7c91537d2629288a9edd7a3df90acaa46ffba0e0e5d49a20598e0960ac458d76eb8fa92a1d64938c0a3a3d60f8be4@54.158.188.182:21000 --emitcheckpoints --istanbul.blockperiod 10 --mine --miner.threads 1 --syncmode full --verbosity 5 --networkid 190250 --rpc --rpccorsdomain "*" --rpcvhosts "*" --rpcaddr 127.0.0.1 --rpcport 8545 --rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3,quorum,istanbul --port 30300
9999
```
100100
### Additional Bootnodes
101101
Masa operates several bootnodes, one is already included in the comnand above by default. If you are having issues connecting to the bootnode please use an alternaitve from the list below.

ui/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Masa Node
2+
3+
## Node UI
4+
### Specification
5+
- React.js & Typescript
6+
- Docker for deployment
7+
### Config
8+
```
9+
# pull the official base image
10+
FROM node:16
11+
# set working direction
12+
WORKDIR /app
13+
# install application dependencies
14+
COPY package.json ./
15+
COPY package-lock.json ./
16+
RUN npm i
17+
# add app
18+
COPY . ./
19+
# start app
20+
CMD ["npm", "start"]
21+
```
22+
### Running
23+
`docker-compose up ui`
24+
25+
Navigate to you local host to interact with the Masa Node
26+
`http://localhost:3000`
27+

ui/docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: '3.6'
2+
services:
3+
ui:
4+
image: masafinance/node-ui
5+
ports:
6+
- 3000:3000

0 commit comments

Comments
 (0)