Commit 8bf90244 authored by mdj33's avatar mdj33 Committed by vipwzw

fix comments

parent 86e00bbe
......@@ -273,42 +273,3 @@ func TestGetConsensusStatus(t *testing.T) {
assert.Nil(t, err)
assert.Equal(t, int64(1), ret.Height)
}
//框架增加了SetAPI接口
//func TestGetConsensusStatus(t *testing.T) {
// api := new(apimock.QueueProtocolAPI)
// baseCli := new(drivers.BaseClient)
// baseCli.SetAPI(api)
// para := new(client)
// para.BaseClient = baseCli
// grpcClient := &typesmocks.Chain33Client{}
// para.grpcClient = grpcClient
// commitCli := new(commitMsgClient)
// commitCli.paraClient = para
//
// block := &types.Block{
// Height: 1,
// MainHeight: 10,
// }
//
// status := &pt.ParacrossStatus{
// Height: 1,
// }
// reply := &types.Reply{
// IsOk: true,
// Msg: types.Encode(status),
// }
// grpcClient.On("QueryChain", mock.Anything, mock.Anything).Return(reply, nil).Once()
// ret, err := commitCli.getConsensusStatus(block)
//
// assert.Nil(t, err)
// assert.Equal(t, int64(1), ret.Height)
//
// mainParaSelfConsensusForkHeight = 1
// status = &pt.ParacrossStatus{}
// api.On("QueryChain",mock.Anything, mock.Anything).Return(status,nil)
// ret, err = commitCli.getConsensusStatus(block)
// assert.Nil(t,err)
// assert.Equal(t, ret, status)
//
//}
......@@ -12,7 +12,7 @@ import (
"strings"
"github.com/33cn/chain33/rpc/jsonclient"
rpcTypes "github.com/33cn/chain33/rpc/types"
rpctypes "github.com/33cn/chain33/rpc/types"
"github.com/33cn/chain33/system/dapp/commands"
"github.com/33cn/chain33/types"
pt "github.com/33cn/plugin/plugin/dapp/paracross/types"
......@@ -273,7 +273,7 @@ func createNodeTx(cmd *cobra.Command, args []string) {
}
payload := &pt.ParaNodeAddrConfig{Op: op, Value: val, Addr: opAddr}
params := &rpcTypes.CreateTxIn{
params := &rpctypes.CreateTxIn{
Execer: types.ExecName(pt.ParaX),
ActionName: "NodeConfig",
Payload: types.MustPBToJSON(payload),
......
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