consensus: genesis timestamp hardcoded and retrieved based on network

This commit is contained in:
aggstam
2022-05-04 21:15:56 +03:00
parent be7fd5fef2
commit d5b9a811a4
4 changed files with 17 additions and 21 deletions

View File

@@ -23,8 +23,7 @@ LOG_TARGETS="!sled,!net" ./darkfid2 \
--rpc-listen tcp://127.0.0.1:6010 \
--sync-p2p-accept 127.0.0.1:6020 \
--sync-p2p-external 127.0.0.1:6020 \
--wallet-path ./tmp/node0/wallet.db \
-g 1650887115 &
--wallet-path ./tmp/node0/wallet.db &
pids[${#pids[@]}]=$!
@@ -46,8 +45,7 @@ do
--rpc-listen tcp://127.0.0.1:601$i \
--sync-p2p-accept 127.0.0.1:602$i \
--sync-p2p-external 127.0.0.1:602$i \
--wallet-path ./tmp/node$i/wallet.db \
-g 1650887115 &
--wallet-path ./tmp/node$i/wallet.db &
pids[${#pids[@]}]=$!
# waiting for node to setup
sleep 20
@@ -77,5 +75,4 @@ LOG_TARGETS="!sled,!net" ./darkfid2 \
--rpc-listen tcp://127.0.0.1:601$bound \
--sync-p2p-accept 127.0.0.1:602$bound \
--sync-p2p-external 127.0.0.1:602$bound \
--wallet-path ./tmp/node$bound/wallet.db \
-g 1650887115
--wallet-path ./tmp/node$bound/wallet.db