config: disable_data_hash (for testing)

This commit is contained in:
Ethan Buchman
2016-03-10 15:50:35 -05:00
parent 196af01707
commit 898f44ddda
3 changed files with 6 additions and 0 deletions

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 {