Merge pull request #1196 from rphmeier/rpc-tests

transaction count verifier tests
This commit is contained in:
Arkadiy Paronyan
2016-06-01 12:44:51 +02:00
4 changed files with 340 additions and 184 deletions

View File

@@ -87,7 +87,7 @@ struct AccountUnlock {
}
/// Basic account management trait
pub trait AccountProvider : Send + Sync {
pub trait AccountProvider: Send + Sync {
/// Lists all accounts
fn accounts(&self) -> Result<Vec<Address>, ::std::io::Error>;
/// Unlocks account with the password provided
@@ -325,7 +325,7 @@ impl SecretStore {
ret
}
/// Returns secret for unlocked account.
/// Returns secret for locked account.
pub fn locked_account_secret(&self, account: &Address, pass: &str) -> Result<crypto::Secret, SigningError> {
let secret_id = try!(self.account(&account).ok_or(SigningError::NoAccount));
self.get(&secret_id, pass).or_else(|e| Err(match e {