Unverified Commit 6a074b0e authored by pengjun's avatar pengjun Committed by GitHub

Merge pull request #1 from mdj33/jpeng-go-fix-dpos-test-para

add para node port check
parents 2195f081 4c4d7123
......@@ -18,9 +18,11 @@ func TestParaNode(t *testing.T) {
defer para.Close()
//通过rpc 发生信息
tx := util.CreateTxWithExecer(paraCfg, para.Para.GetGenesisKey(), "user.p.test.none")
assert.NotNil(t, tx)
para.Para.SendTxRPC(tx)
para.Para.WaitHeight(1)
tx = util.CreateTxWithExecer(paraCfg, para.Para.GetGenesisKey(), "user.p.test.none")
assert.NotNil(t, tx)
para.Para.SendTxRPC(tx)
para.Para.WaitHeight(2)
......
package testnode
import (
"fmt"
"github.com/33cn/chain33/types"
"github.com/33cn/chain33/util/testnode"
)
......@@ -24,6 +26,7 @@ func NewParaNode(main *testnode.Chain33Mock, para *testnode.Chain33Mock) *ParaNo
}
if para == nil {
cfg := types.NewChain33Config(DefaultConfig)
fmt.Println("mainnode.Grpc=", main.GetCfg().RPC.GrpcBindAddr, "mainnode.jrpc=", main.GetCfg().RPC.JrpcBindAddr)
testnode.ModifyParaClient(cfg, main.GetCfg().RPC.GrpcBindAddr)
para = testnode.NewWithConfig(cfg, nil)
para.Listen()
......
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