use the static secp instance everywhere (except the wallet) (#250)

This commit is contained in:
AntiochP
2017-11-09 14:26:45 -05:00
committed by GitHub
parent a0c0d6f382
commit c1656f7660
10 changed files with 102 additions and 78 deletions
+1 -3
View File
@@ -22,7 +22,6 @@ use core::core::block;
use core::core::hash;
use core::global;
use util::secp;
use util::secp::pedersen::Commitment;
use std::sync::Arc;
@@ -145,8 +144,7 @@ where
}
// Making sure the transaction is valid before anything else.
let secp = secp::Secp256k1::with_caps(secp::ContextFlag::Commit);
tx.validate(&secp).map_err(|_e| PoolError::Invalid)?;
tx.validate().map_err(|_e| PoolError::Invalid)?;
// The first check involves ensuring that an identical transaction is
// not already in the pool's transaction set.