Browse Source

Change NOTE to CONTRACT

pull/750/head
Adrian Brink 7 years ago
committed by Ethan Buchman
parent
commit
819f81f702
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mempool/mempool.go

+ 1
- 1
mempool/mempool.go View File

@ -164,7 +164,7 @@ func (mem *Mempool) TxsFrontWait() *clist.CElement {
// It blocks if we're waiting on Update() or Reap().
// cb: A callback from the CheckTx command.
// It gets called from another goroutine.
// NOTE: Either cb will get called, or err returned.
// CONTRACT: Either cb will get called, or err returned.
func (mem *Mempool) CheckTx(tx types.Tx, cb func(*abci.Response)) (err error) {
mem.proxyMtx.Lock()
defer mem.proxyMtx.Unlock()


Loading…
Cancel
Save