Initial commit
This commit is contained in:
21
block.go
Normal file
21
block.go
Normal 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() {
|
||||
}
|
Reference in New Issue
Block a user