consensus & account txs are all in Block.Data.Txs

This commit is contained in:
Jae Kwon
2014-09-11 01:11:41 -07:00
parent d772282c25
commit 03d1af711a
5 changed files with 132 additions and 77 deletions

View File

@ -63,7 +63,7 @@ func TestBlock(t *testing.T) {
PubKey: randBytes(32),
}
// Consensus Txs
// Validation Txs
bond := &Bond{
Signature: randSig(),
@ -106,15 +106,14 @@ func TestBlock(t *testing.T) {
Time: randTime(),
PrevHash: randBytes(32),
ValidationHash: randBytes(32),
TxsHash: randBytes(32),
DataHash: randBytes(32),
},
Validation: Validation{
Signatures: []Signature{randSig(), randSig()},
Txs: []Txs{bond, unbond, timeout, dupeout},
},
Txs: Txs{
Txs: []Tx{sendTx, nameTx},
hash: nil,
Data: Data{
Txs: []Tx{sendTx, nameTx},
},
}