Initial commit

This commit is contained in:
obscuren
2013-12-26 12:45:52 +01:00
commit 5db3335dce
11 changed files with 669 additions and 0 deletions

21
block.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
_"fmt"
)
type Block struct {
transactions []*Transaction
}
func NewBlock(/* TODO use raw data */transactions []*Transaction) *Block {
block := &Block{
// Slice of transactions to include in this block
transactions: transactions,
}
return block
}
func (block *Block) Update() {
}