Commit faf9a573 authored by harrylee's avatar harrylee Committed by vipwzw

fix a bug

parent 9ee34269
...@@ -82,7 +82,7 @@ func CheckOp(op int32) bool { ...@@ -82,7 +82,7 @@ func CheckOp(op int32) bool {
} }
func CheckCount(count int32) bool { func CheckCount(count int32) bool {
return count > 20 return count <= 20 && count >= 0
} }
func CheckDirection(direction int32) bool { func CheckDirection(direction int32) bool {
......
package types package types
import ( import (
log "github.com/33cn/chain33/common/log/log15"
"github.com/33cn/chain33/types" "github.com/33cn/chain33/types"
) )
...@@ -75,7 +74,7 @@ var ( ...@@ -75,7 +74,7 @@ var (
logMap = map[int64]*types.LogInfo{ logMap = map[int64]*types.LogInfo{
//LogID: {Ty: reflect.TypeOf(LogStruct), Name: LogName}, //LogID: {Ty: reflect.TypeOf(LogStruct), Name: LogName},
} }
tlog = log.New("module", "exchange.types") //tlog = log.New("module", "exchange.types")
) )
// init defines a register function // init defines a register function
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment