Skip to content

simplespy/ScaleChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScaleChain

Steps

[./ScaleChain_v1]

  1. deploy the contract on Ropsten

[./mainNode]

  1. npm install

  2. Print contract status info: node mainNode.js -i

  3. Test addMainNode

  4. Test sendBlock

  5. Retrieve transaction history and recompute hash

    • node mainNode.js -v
  6. Test multiple nodes sending transactions:

    • . ./run_mainNode.sh [config file]

Test Commands

Options:
  --version             Show version number                            [boolean]
  --addMainNode, -a     Add a main node to member list
  --getMainNode, -g     Get main node given index (from 1)              [number]
  --countMainNodes, -c  Get the number of main nodes
  --getCurrentHash, -h  Get the current hash value
  --getBlockID, -b      Get the current block ID
  --sendBlock, -s       Send a random block
  --test, -t            Testing code
  --info, -i            Get current info
  --verify, -v          Retrieve transaction history to verify block hash
  --help                Show help                                      [boolean]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors