mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 11:31:02 +00:00
22 lines
324 B
Go
22 lines
324 B
Go
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() {
|
|
}
|