Skip to content

Commit

Permalink
refactor: unify Cellbase style
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsoledad committed Dec 26, 2018
1 parent 58cb857 commit 71dec8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pool/src/txs_pool/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ where
self.is_acceptable()?;

if tx.is_cellbase() {
return Err(PoolError::CellBase);
return Err(PoolError::Cellbase);
}

self.check_duplicate(&tx)?;
Expand Down
4 changes: 2 additions & 2 deletions pool/src/txs_pool/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ pub enum PoolError {
OverCapacity,
/// A duplicate output
DuplicateOutput,
/// Coinbase transaction
CellBase,
/// tx_pool don't accept cellbase-like tx
Cellbase,
/// TimeOut
TimeOut,
/// Blocknumber is not right
Expand Down

0 comments on commit 71dec8b

Please sign in to comment.