Merge pull request #276 from silasdavis/mempool-reap

Fix mistake in Mempool Reap documentation
This commit is contained in:
Jae Kwon 2016-09-16 08:31:11 -07:00 committed by GitHub
commit 22155df759
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ func (mem *Mempool) resCbRecheck(req *tmsp.Request, res *tmsp.Response) {
}
// Get the valid transactions remaining
// If maxTxs is 0, there is no cap.
// If maxTxs is -1, there is no cap on returned transactions.
func (mem *Mempool) Reap(maxTxs int) []types.Tx {
mem.proxyMtx.Lock()
defer mem.proxyMtx.Unlock()