Browse Source

update tmsp glide

pull/233/head
Ethan Buchman 9 years ago
parent
commit
e8271c8a4b
3 changed files with 3 additions and 4 deletions
  1. +1
    -1
      glide.lock
  2. +2
    -0
      mempool/mempool.go
  3. +0
    -3
      test/rpc/counter_test.sh

+ 1
- 1
glide.lock View File

@ -84,7 +84,7 @@ imports:
subpackages: subpackages:
- term - term
- name: github.com/tendermint/tmsp - name: github.com/tendermint/tmsp
version: f41bc5f11969e22b357d94b4247403fd62d40445
version: 49a67aee8a7984a68eabe2c45ff6eb0ff51e31f9
subpackages: subpackages:
- client - client
- example/dummy - example/dummy


+ 2
- 0
mempool/mempool.go View File

@ -194,6 +194,8 @@ func (mem *Mempool) resCbNormal(req *tmsp.Request, res *tmsp.Response) {
log.Info("Bad Transaction", "res", r) log.Info("Bad Transaction", "res", r)
// remove from cache (it might be good later) // remove from cache (it might be good later)
// note this is an async callback,
// so we need to grab the lock in removeTxFromCacheMap
mem.removeTxFromCacheMap(req.GetCheckTx().Tx) mem.removeTxFromCacheMap(req.GetCheckTx().Tx)
// TODO: handle other retcodes // TODO: handle other retcodes


+ 0
- 3
test/rpc/counter_test.sh View File

@ -13,9 +13,6 @@ function sendTx() {
CODE=`echo $RESPONSE | jq .result[1].code` CODE=`echo $RESPONSE | jq .result[1].code`
ERROR=`echo $RESPONSE | jq .error` ERROR=`echo $RESPONSE | jq .error`
ERROR=$(echo "$ERROR" | tr -d '"') # remove surrounding quotes ERROR=$(echo "$ERROR" | tr -d '"') # remove surrounding quotes
echo "ERROR: $ERROR"
echo "CODE: $CODE"
echo ""
} }
# 0 should pass once and get in block, with no error # 0 should pass once and get in block, with no error


Loading…
Cancel
Save