Rename `push_user_transaction`.
This commit is contained in:
parent
83dba5f6ac
commit
698bb0dffb
|
@ -229,7 +229,7 @@ impl<T: Contribution> Hydrabadger<T> {
|
|||
}
|
||||
|
||||
/// Handles a incoming batch of user transactions.
|
||||
pub fn push_user_transaction(&self, txn: T) -> Result<(), Error> {
|
||||
pub fn push_user_contribution(&self, txn: T) -> Result<(), Error> {
|
||||
let (dsct, _, _) = self.state_info_stale();
|
||||
|
||||
match dsct {
|
||||
|
@ -241,7 +241,7 @@ impl<T: Contribution> Hydrabadger<T> {
|
|||
));
|
||||
Ok(())
|
||||
}
|
||||
_ => Err(Error::PushUserTransactionNotValidator),
|
||||
_ => Err(Error::PushUserContributionNotValidator),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -49,8 +49,8 @@ pub enum Error {
|
|||
SyncKeyGenNew(SyncKeyGenError),
|
||||
#[fail(display = "Error generating keys: {}", _0)]
|
||||
SyncKeyGenGenerate(SyncKeyGenError),
|
||||
#[fail(display = "Unable to push user transaction, this node is not a validator")]
|
||||
PushUserTransactionNotValidator,
|
||||
#[fail(display = "Unable to push user transactions, this node is not a validator")]
|
||||
PushUserContributionNotValidator,
|
||||
}
|
||||
|
||||
impl From<std::io::Error> for Error {
|
||||
|
|
Loading…
Reference in New Issue