config: disable_data_hash (for testing)

This commit is contained in:
Ethan Buchman
2016-04-19 20:43:54 -04:00
parent 196af01707
commit 898f44ddda
3 changed files with 6 additions and 0 deletions
+4
View File
@@ -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 {