Skip to content

Commit

Permalink
add more time to sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
nosequeldeebee committed Mar 25, 2018
1 parent d61bb70 commit ba50f71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proof-stake/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func main() {
// pickWinner creates a lottery pool of validators and chooses the validator who gets to forge a block to the blockchain
// by random selecting from the pool, weighted by amount of tokens staked
func pickWinner() {
time.Sleep(15 * time.Second)
time.Sleep(30 * time.Second)
mutex.Lock()
temp := tempBlocks
mutex.Unlock()
Expand Down Expand Up @@ -212,7 +212,7 @@ func handleConn(conn net.Conn) {

// simulate receiving broadcast
for {
time.Sleep(20 * time.Second)
time.Sleep(time.Minute)
mutex.Lock()
output, err := json.Marshal(Blockchain)
mutex.Unlock()
Expand Down

0 comments on commit ba50f71

Please sign in to comment.