mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-28 04:01:40 +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