mirror of https://github.com/ethereum/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.
21 lines
324 B
21 lines
324 B
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() {
|
|
}
|
|
|