aboutsummaryrefslogtreecommitdiffstats
path: root/block.go
blob: a0bcf0bd0c1322bec51088bf8e6ffccee60effa9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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() {
}