diff options
Diffstat (limited to 'block.go')
-rw-r--r-- | block.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/block.go b/block.go new file mode 100644 index 000000000..a0bcf0bd0 --- /dev/null +++ b/block.go @@ -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() { +} |