swarm/storage: Remove signatures from non-validated resources

This commit is contained in:
lash 2018-01-18 03:19:29 +01:00
parent 3d92c93888
commit cf191d30a9
2 changed files with 0 additions and 10 deletions

View file

@ -36,7 +36,6 @@ func NewENSValidator(contractaddress common.Address, backend bind.ContractBacken
if err != nil {
return nil, err
}
validator.hashlength = len(ens.EnsNode(dbDirName).Bytes())
return validator, nil
}

View file

@ -333,15 +333,6 @@ func setupTest(contractbackend bind.ContractBackend, validator ResourceValidator
}
}
if validator == nil {
// create a new signer, which creates the private key
signer, err = newTestSigner()
if err != nil {
return
}
validator = NewGenericValidator(testHashFunc, signer.signContent)
}
// temp datadir
datadir, err = ioutil.TempDir("", "rh")
if err != nil {