forked from mirror/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
324 B
22 lines
324 B
11 years ago
|
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() {
|
||
|
}
|