diff options
author | obscuren <obscuren@obscura.com> | 2013-12-26 19:45:52 +0800 |
---|---|---|
committer | obscuren <obscuren@obscura.com> | 2013-12-26 19:45:52 +0800 |
commit | 5db3335dce766bd679c54ea44f6df08a7ff74762 (patch) | |
tree | 75614c847fdc07150351e9aa02353d8f1d23196c /block.go | |
download | go-tangerine-5db3335dce766bd679c54ea44f6df08a7ff74762.tar go-tangerine-5db3335dce766bd679c54ea44f6df08a7ff74762.tar.gz go-tangerine-5db3335dce766bd679c54ea44f6df08a7ff74762.tar.bz2 go-tangerine-5db3335dce766bd679c54ea44f6df08a7ff74762.tar.lz go-tangerine-5db3335dce766bd679c54ea44f6df08a7ff74762.tar.xz go-tangerine-5db3335dce766bd679c54ea44f6df08a7ff74762.tar.zst go-tangerine-5db3335dce766bd679c54ea44f6df08a7ff74762.zip |
Initial commit
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() { +} |