Skip to content

euihyun-lee/blockchain_tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to simulate (needs many terminals):
python version: 3.x

<terminal 1 - server containing peer miner info>
$ python peers.py

<terminal 2 - miner at port 5000>
$ python miner.py
Port number? 5000

<terminal 3 - miner at port 5001>
$ python miner.py
Port number? 5001

<terminal 4>
$ ./tx.sh 5000 Alice Bob 50 // Alice sends 50 Coin to Bob through miner at port number 5000
$ ./mine.sh 5000 // miner at port 5000 mines its transactions
$ ./chain.sh 5000 // check the chain belongs to the miner at port 5000
$ ./chain.sh 5001 // check the chain belongs to the miner at port 5001

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published