Demo of sChain PoW script
-
Run command from project directory:
python -m SimpleHTTPServer 8000
-
Run page in browser using
http://localhost:8000/demo.html
-
Deploy contract and receive 1 ETH on your metamask account
-
Install dependencies:
npm i
-
Create
.env
file in project directory:OWNER_KEY=... #Key to deploy contract PRIVATE_KEY=... #Key from test account SKALE_ENDPOINT=... #Test sChain endpoint
-
Run
node pow-test.js
The CPU time used for this PoW can be measured as:
time node benchmark.js # 10 runs
time node benchmark.js 15 # 15 runs
skale-miner.js
- script for mining with PoWpow-test.js
- example of usageskale-miner.js