Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
nosequeldeebee committed Mar 25, 2018
1 parent ba50f71 commit faa8d9a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions proof-stake/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,6 @@ func isBlockValid(newBlock, oldBlock Block) bool {
return true
}

// replaceChain supplants old blockchain with new, longer chain
func replaceChain(newBlocks []Block) {
mutex.Lock()
Blockchain = newBlocks
mutex.Unlock()
}

// SHA256 hasing
// calculateHash is a simple SHA256 hashing function
func calculateHash(s string) string {
Expand Down

0 comments on commit faa8d9a

Please sign in to comment.