OSDN Git Service

41ab115cd1bea6d745ba12987422b47901aa456e
[bytom/bytom.git] / protocol / bc / legacy / block_witness.go
1 package legacy
2
3 import (
4         "io"
5
6         "github.com/blockchain/encoding/blockchain"
7 )
8
9 type BlockWitness struct {
10         // Witness is a vector of arguments to the previous block's
11         // ConsensusProgram for validating this block.
12         Witness [][]byte
13 }
14
15 func (bw *BlockWitness) writeTo(w io.Writer) error {
16         _, err := blockchain.WriteVarstrList(w, bw.Witness)
17         return err
18 }