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

[fix] dbs_write_ops:add_pending_tx: error in control condition

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