rename MaxBytes to MaxTxsTotalBytes

This commit is contained in:
Anton Kaliaev
2019-02-05 20:23:42 +04:00
parent 03aa40addd
commit fe8726ecf3
5 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -319,7 +319,7 @@ func (mem *Mempool) CheckTx(tx types.Tx, cb func(*abci.Response)) (err error) {
if mem.Size() >= mem.config.Size {
return ErrMempoolIsFull
} else if int64(len(tx))+mem.TxsTotalBytes() > mem.config.MaxBytes {
} else if int64(len(tx))+mem.TxsTotalBytes() > mem.config.MaxTxsTotalBytes {
return ErrMempoolIsFull
}