Skip to content
Snippets Groups Projects
Commit 53b8f79e authored by Éloïs's avatar Éloïs
Browse files

[fix] mempools: add_pending_tx: error in control condition

parent 7a3e1a35
Branches
No related tags found
1 merge request!1335Gva proto 2
...@@ -93,7 +93,7 @@ impl TxsMempool { ...@@ -93,7 +93,7 @@ impl TxsMempool {
} else { } else {
duniter_dbs_write_ops::txs_mp::add_pending_tx( duniter_dbs_write_ops::txs_mp::add_pending_tx(
|_tx, txs| { |_tx, txs| {
if txs.count()? < self.max_size { if txs.count()? >= self.max_size {
Err(KvError::Custom(TxMpError::Full.into())) Err(KvError::Custom(TxMpError::Full.into()))
} else { } else {
Ok(()) Ok(())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment