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

@ -21,7 +21,7 @@ func BenchmarkTestCustom(b *testing.B) {
Time: time.Unix(123, 0),
PrevHash: []byte("prevhash"),
ValidationHash: []byte("validationhash"),
TxsHash: []byte("txshash"),
DataHash: []byte("datahash"),
}
buf := bytes.NewBuffer(nil)
@ -46,7 +46,7 @@ type HHeader struct {
Time uint64 `json:"T"`
PrevHash []byte `json:"PH"`
ValidationHash []byte `json:"VH"`
TxsHash []byte `json:"DH"`
DataHash []byte `json:"DH"`
}
func BenchmarkTestJSON(b *testing.B) {
@ -59,7 +59,7 @@ func BenchmarkTestJSON(b *testing.B) {
Time: 123,
PrevHash: []byte("prevhash"),
ValidationHash: []byte("validationhash"),
TxsHash: []byte("txshash"),
DataHash: []byte("datahash"),
}
h2 := &HHeader{}
@ -88,7 +88,7 @@ func BenchmarkTestGob(b *testing.B) {
Time: time.Unix(123, 0),
PrevHash: []byte("prevhash"),
ValidationHash: []byte("validationhash"),
TxsHash: []byte("txshash"),
DataHash: []byte("datahash"),
}
h2 := &Header{}
@ -117,7 +117,7 @@ func BenchmarkTestMsgPack(b *testing.B) {
Time: time.Unix(123, 0),
PrevHash: []byte("prevhash"),
ValidationHash: []byte("validationhash"),
TxsHash: []byte("txshash"),
DataHash: []byte("datahash"),
}
h2 := &Header{}
@ -146,7 +146,7 @@ func BenchmarkTestMsgPack2(b *testing.B) {
Time: time.Unix(123, 0),
PrevHash: []byte("prevhash"),
ValidationHash: []byte("validationhash"),
TxsHash: []byte("txshash"),
DataHash: []byte("datahash"),
}
h2 := &Header{}
var mh codec.MsgpackHandle