Skip to content

datdotorg/datdot-service

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

DatDot

a p2p solution for hosting files with Hypercore protocol (...more)

Community

Join our discord

Build

This version is work in progress (to try previous verisons of the code, see milestone-1 and milestone-2 branches)

Clone

git clone https://github.com/datdotorg/datdot-service.git cd datdot-service

Install dependencies

npm install

Run

npm run bootstrap start the bootstrapping nodes npm run simulation -- -s 1 -p bootstrap.json run the scenario which also spawns the chain npm run simulation -- -s 2 -c 10000 -p bootstrap.json -t run the additional scenario and connect to already running chain (optional)

or simply run a simsim.js where you can customize how many simulations you want to run and when

npm run bootstrap start the bootstrapping nodes node demo/simsim.js

Monitoring

npm run bootstrap start the bootstrapping nodes node demo/simsim.js &>> logs/logs.txt save logs in a logs.txt file

You can i.e. monitor:

  • successfully completed performance challenges tail -f logs/logs.txt | grep -i 'Hoster successfully completed performance challenge' -B 2 -C 2
  • succesfully completed storage challenges tail -f logs/logs.txt | grep -i 'Storage challenge analysis' -B 5 -C 4
  • errors tail -f logs/logs.txt | grep -i 'error' -B 5 -C 5

Research

See our research repo

Organization

https://github.com/datdotorg

License

MIT