i implemented a simple blockchain from scratch using golang, Now , i want to implement a consensus(mining) algorithm.
Multiple miners must execute the consensus algo, how to build this in Golang??
how to build or simulat that i have multiple Miners ?
i found this good tutorial to start with multi threading using goroutines and channels