Rename `push_user_contribution`.

This commit is contained in:
c0gent 2018-10-23 13:04:11 -07:00
parent a5d756d748
commit 440e8c2da7
No known key found for this signature in database
GPG Key ID: 9CC25E71A743E892
2 changed files with 3 additions and 3 deletions

View File

@ -234,7 +234,7 @@ impl<T: Contribution> Hydrabadger<T> {
}
/// Handles a incoming batch of user transactions.
pub fn push_user_contribution(&self, txn: T) -> Result<(), Error> {
pub fn propose_user_contribution(&self, txn: T) -> Result<(), Error> {
let (dsct, _, _) = self.state_info_stale();
match dsct {
@ -246,7 +246,7 @@ impl<T: Contribution> Hydrabadger<T> {
));
Ok(())
}
_ => Err(Error::PushUserContributionNotValidator),
_ => Err(Error::ProposeUserContributionNotValidator),
}
}

View File

@ -51,7 +51,7 @@ pub enum Error {
#[fail(display = "Error generating keys: {}", _0)]
SyncKeyGenGenerate(SyncKeyGenError),
#[fail(display = "Unable to push user transactions, this node is not a validator")]
PushUserContributionNotValidator,
ProposeUserContributionNotValidator,
}
impl From<std::io::Error> for Error {