-
modify execution configuration and enter PID
0 | 1 | 2
as CLI argument and run Blockchain.main()- [OPTIONAL] Give respective execution configuration a name/id for clarity
Blockchain 0 | Blockchain 1 | Blockchain 2
- run each config file starting from 0
- [OPTIONAL] Give respective execution configuration a name/id for clarity
-
In root directory, run
docker compose up -d
from command line- when shut down initiates, inspect shut down snapshot with
docker compose logs
. One can also enter the containerpow-process0
and inspect theBlockchainLedger.json
- clean up --
docker compose down
- when shut down initiates, inspect shut down snapshot with
cat BlockChainLedger.json | jq '. | length'
: should always be 13 blocks- 1 dodgy block record
- 4 legit block record for each process (4*3=12)
cat BlockChainLedger.json | jq
: to view ledger in pretty print json- ensure block id is incremental
- ensure verified blocks are not duplicated and only appear once
- ensure winning hash continues to be used to build next block
- ensure all processes are participating in the blockchain protocol