SIGBlockchain / project_aurum

SIG Blockchain blockchain project in Go
https://acm.cs.uic.edu/sigblockchain
MIT License
7 stars 0 forks source link

Settings commands #321

Closed kastolars closed 5 years ago

kastolars commented 5 years ago

Currently config.json has the following structure:

{
    "Version": 1,
    "InitialAurumSupply": 50000000,
    "Port": "12000",
    "BlockProductionInterval": "20s",
    "Localhost": true
}

In an effort to make changes easier, create a separate main.go which will be a produce a binary that can change a particular configuration setting depending on what flag is specified.

So theoretically you would be able to run someBinary -port 35000 and that would go into the config.json file and change the port.

Resource: https://golang.org/pkg/flag/

HarryL5004 commented 5 years ago

Completed