Skip to content

Instantly share code, notes, and snippets.

View hemantkgupta's full-sized avatar

Hemant hemantkgupta

View GitHub Profile
@hemantkgupta
hemantkgupta / docker-compose.yml
Created May 1, 2023 21:21
docker comose for private network
version: '3.7'
services:
mybootnode:
hostname: mybootnode
env_file:
- .env
build:
context: .
args:
@hemantkgupta
hemantkgupta / Dockerfile
Created May 1, 2023 20:32
Dockerfile for private blockchain
FROM ethereum/client-go:v1.10.1
ARG ACCOUNT_PASSWORD
COPY genesis.json .
RUN geth init ./genesis.json \
&& rm -f ~/.ethereum/geth/nodekey \
&& echo ${ACCOUNT_PASSWORD} > ./password.txt \
&& geth account new --password ./password.txt \
@hemantkgupta
hemantkgupta / genesis.json
Created May 1, 2023 20:28
The genesis file for private blockchain
{
"config": {
"chainId": 3456,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
a {
text-decoration: none;
}