Created
January 18, 2019 14:10
-
-
Save fernandoporazzi/f4f14b7764c7c5ed8f7cc5be7152c60a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package blockchain | |
import ( | |
"github.com/fernandoporazzi/blockchain-golang/block" | |
) | |
type Blockchain struct { | |
Blocks []block.Block | |
Index int | |
Difficulty int | |
} | |
func CreateBlockchain() Blockchain { | |
var b Blockchain | |
b.Index = 0 | |
b.Difficulty = 3 | |
return b | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment