Suppress warnings along with explanation.

This commit is contained in:
Gav Wood
2016-02-03 13:32:57 +01:00
parent c531150f44
commit 3f03ba40ee
5 changed files with 11 additions and 8 deletions

View File

@@ -230,6 +230,7 @@ impl Transaction {
}
/// Do basic validation, checking for valid signature and minimum gas,
#[allow(dead_code)] // Used only in tests. TODO: consider use in block validation.
pub fn validate(self, schedule: &Schedule, require_low: bool) -> Result<Transaction, Error> {
if require_low && !ec::is_low_s(&self.s) {
return Err(Error::Util(UtilError::Crypto(CryptoError::InvalidSignature)));