Commit ddcea039 authored by mdj33's avatar mdj33 Committed by 33cn

fix ut

parent d9b22618
...@@ -559,8 +559,7 @@ paracross_testUnBind() { ...@@ -559,8 +559,7 @@ paracross_testUnBind() {
# superNode=$(jq -r ".result.List.SuperNode" <<<"$resp") # superNode=$(jq -r ".result.List.SuperNode" <<<"$resp")
# miners=$(jq -r ".result.List.Miners" <<<"$resp") # miners=$(jq -r ".result.List.Miners" <<<"$resp")
# chain33_Http '{"method":"Chain33.Query","params":[{ "execer":"paracross", "funcName":"GetNodeBindMinerList","payload":{"Node":"1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4"}}]}' "${para_ip}" '(.error|not) and (.result.List| [has("1KSBd17H7Z"),true])' "$FUNCNAME" '(.result.List)' chain33_Http '{"method":"Chain33.Query","params":[{ "execer":"paracross", "funcName":"GetNodeBindMinerList","payload":{"node":"1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4","miner":"1Q9sQwothzM1gKSzkVZ8Dt1tqKX1uzSagx"}}]}' "${para_ip}" '(.error|not) and (.result.List| [has("1Q9sQw"),true])' "$FUNCNAME" '(.result.List)'
chain33_Http '{"method":"Chain33.Query","params":[{ "execer":"paracross", "funcName":"GetNodeBindMinerList","payload":{"node":"1KSBd17H7ZK8iT37aJztFB22XGwsPTdwE4","Miner":"${addr1q9}"}}]}' "${para_ip}" '(.error|not) and (.result.List| [has("1Q9sQw"),true])' "$FUNCNAME" '(.result.List)'
} }
paracross_testBindMiner() { paracross_testBindMiner() {
...@@ -568,9 +567,6 @@ paracross_testBindMiner() { ...@@ -568,9 +567,6 @@ paracross_testBindMiner() {
paracross_testBind "$1" paracross_testBind "$1"
#unbind #unbind
paracross_testUnBind "$1" paracross_testUnBind "$1"
#bind agin
paracross_testBind "$1"
} }
function apply_coins() { function apply_coins() {
......
...@@ -656,7 +656,7 @@ func (p *Paracross) Query_GetMinerBindNodeList(in *pt.ParaNodeMinerListReq) (typ ...@@ -656,7 +656,7 @@ func (p *Paracross) Query_GetMinerBindNodeList(in *pt.ParaNodeMinerListReq) (typ
} }
for _, n := range nodeInfo.Nodes { for _, n := range nodeInfo.Nodes {
minerInfo, err := getBindAddrInfo(db, in.Node, in.Miner) minerInfo, err := getBindAddrInfo(db, n, in.Miner)
if err != nil { if err != nil {
return nil, err return nil, err
} }
......
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