mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-21 08:51:32 +00:00
consensus & account txs are all in Block.Data.Txs
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user