mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-05 15:47:07 +00:00
config: disable_data_hash (for testing)
This commit is contained in:
@@ -336,6 +336,10 @@ type Data struct {
|
||||
}
|
||||
|
||||
func (data *Data) Hash() []byte {
|
||||
if config.GetBool("disable_data_hash") {
|
||||
data.hash = []byte{}
|
||||
return data.hash
|
||||
}
|
||||
if data.hash == nil {
|
||||
txs := make([]interface{}, len(data.Txs))
|
||||
for i, tx := range data.Txs {
|
||||
|
||||
Reference in New Issue
Block a user