Commit def4afbb authored by vipwzw's avatar vipwzw

auto ci

parent 6a778070
...@@ -32,14 +32,14 @@ func init() { ...@@ -32,14 +32,14 @@ func init() {
type suiteParaClient struct { type suiteParaClient struct {
// Include our basic suite logic. // Include our basic suite logic.
suite.Suite suite.Suite
para *client para *client
grpcCli *typesmocks.Chain33Client grpcCli *typesmocks.Chain33Client
q queue.Queue q queue.Queue
block *blockchain.BlockChain block *blockchain.BlockChain
exec *executor.Executor exec *executor.Executor
store queue.Module store queue.Module
mem queue.Module mem queue.Module
network *p2p.P2p network *p2p.P2p
mainBlockList []*types.Block mainBlockList []*types.Block
} }
...@@ -94,7 +94,7 @@ func (s *suiteParaClient) initEnv(cfg *types.Config, sub *types.ConfigSubModule) ...@@ -94,7 +94,7 @@ func (s *suiteParaClient) initEnv(cfg *types.Config, sub *types.ConfigSubModule)
s.createBlock() s.createBlock()
} }
func (s *suiteParaClient) createTempBlock(){ func (s *suiteParaClient) createTempBlock() {
var parentHash []byte var parentHash []byte
for i := 0; i < 3; i++ { for i := 0; i < 3; i++ {
block := &types.Block{ block := &types.Block{
...@@ -194,10 +194,10 @@ func (s *suiteParaClient) getParaMainBlock(height int64, BlockTime int64) *types ...@@ -194,10 +194,10 @@ func (s *suiteParaClient) getParaMainBlock(height int64, BlockTime int64) *types
Seq: &types.BlockSequence{Hash: s.mainBlockList[height-1].HashByForkHeight(1), Type: addAct}, Seq: &types.BlockSequence{Hash: s.mainBlockList[height-1].HashByForkHeight(1), Type: addAct},
Detail: &types.BlockDetail{ Detail: &types.BlockDetail{
Block: &types.Block{ Block: &types.Block{
ParentHash: s.mainBlockList[height - 1].ParentHash, ParentHash: s.mainBlockList[height-1].ParentHash,
Height: height, Height: height,
BlockTime: BlockTime, BlockTime: BlockTime,
}, },
}, },
} }
} }
\ No newline at end of file
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