From 0f987772b70259a1a421c9bf2647b73a4c3b48f6 Mon Sep 17 00:00:00 2001 From: aryansonid Date: Fri, 13 Mar 2026 13:24:29 +0530 Subject: [PATCH] feat: add shell sripts to start nodes --- test/node1.sh | 14 ++++++++++++++ test/node2.sh | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 test/node1.sh create mode 100644 test/node2.sh diff --git a/test/node1.sh b/test/node1.sh new file mode 100644 index 0000000000..747a8191a1 --- /dev/null +++ b/test/node1.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Node 1: Whitelisted PoW miner +set -e + +# Initialize with PoW genesis +geth --datadir /app/node1 init /app/docker/genesis.json + +# For Ethash mining we don't need local keys; we can mine directly to the etherbase. +geth --datadir /app/node1 \ + --networkid 1234 --nodiscover \ + --http --http.addr 0.0.0.0 --http.port 8545 \ + --port 30303 \ + --http.api eth,net,web3,admin,miner \ + --mine --miner.etherbase 0xca6b49ee60cdd276ab503fbd6fb80a3cfbc06ffc \ No newline at end of file diff --git a/test/node2.sh b/test/node2.sh new file mode 100644 index 0000000000..e967b9802a --- /dev/null +++ b/test/node2.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Node 2: Not whitelisted PoW miner +set -e + +# Initialize with PoW genesis +geth --datadir /app/node2 init /app/docker/genesis.json + +# For Ethash mining we don't need local keys; we can mine directly to the etherbase. +geth --datadir /app/node2 \ + --networkid 1234 --nodiscover \ + --http --http.addr 0.0.0.0 --http.port 8546 \ + --port 30304 \ + --http.api eth,net,web3,admin,miner \ + --mine --miner.etherbase 0xab52b2c71f61cd9447a932c0cb55d1752571dab8 \ No newline at end of file