Commit a8af19e7 authored by lyn's avatar lyn Committed by vipwzw

add para mempool

parent ce7ffc5b
...@@ -3,11 +3,12 @@ package para ...@@ -3,11 +3,12 @@ package para
import ( import (
"bytes" "bytes"
"context" "context"
"fmt"
log "github.com/33cn/chain33/common/log/log15" log "github.com/33cn/chain33/common/log/log15"
"github.com/33cn/chain33/queue" "github.com/33cn/chain33/queue"
"github.com/33cn/chain33/rpc/grpcclient" "github.com/33cn/chain33/rpc/grpcclient"
"github.com/33cn/chain33/types" "github.com/33cn/chain33/types"
"fmt"
) )
var mlog = log.New("module", "mempool.para") var mlog = log.New("module", "mempool.para")
...@@ -49,7 +50,7 @@ func (mem *Mempool) SetQueueClient(client queue.Client) { ...@@ -49,7 +50,7 @@ func (mem *Mempool) SetQueueClient(client queue.Client) {
reply, err := mem.mainGrpcCli.SendTransaction(context.Background(), tx) reply, err := mem.mainGrpcCli.SendTransaction(context.Background(), tx)
if err != nil { if err != nil {
//进行重试 //进行重试
for i := 0; i < 3; i ++ { for i := 0; i < 3; i++ {
reply, err = mem.mainGrpcCli.SendTransaction(context.Background(), tx) reply, err = mem.mainGrpcCli.SendTransaction(context.Background(), tx)
if err != nil { if err != nil {
continue continue
......
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