Hi, I’m new to the blockchain field and I’ll practice your lessons.
https://jeiwan.cc/posts/building-blockchain-in-go-part-3/
While writing blockchhain on your tutorials, I ran into a problem. The program comes with the first error. After downloading your project from the github, I confronted the same problem, the program ends without letting you add new blocks. Because I ask for help, could you explain what the problem is?
Hi, I’m new to the blockchain field and I’ll practice your lessons. https://jeiwan.cc/posts/building-blockchain-in-go-part-3/ While writing blockchhain on your tutorials, I ran into a problem. The program comes with the first error. After downloading your project from the github, I confronted the same problem, the program ends without letting you add new blocks. Because I ask for help, could you explain what the problem is?
Code: func (cli *CLI) validateArgs() { if len(os.Args) < 2 { cli.printUsage() os.Exit(1) } }
Output: Usage: addblock -data BLOCK_DATA - add a block to the blockchain printchain - print all the blocks of the blockchain
Process finished with exit code 1
I apologize for the trouble and hope for an answer