@@ -36,8 +36,9 @@ type Node struct {
36
36
37
37
computeTxHash types.TxHashCalculator
38
38
39
- client * httpclient.HTTP
40
- txServiceClient tx.ServiceClient
39
+ client * httpclient.HTTP
40
+ txServiceClient tx.ServiceClient
41
+ ignoreConnectVoteExtensionTx bool
41
42
}
42
43
43
44
// NewNode allows to build a new Node instance
@@ -74,8 +75,9 @@ func NewNode(
74
75
75
76
computeTxHash : txHashCalculator ,
76
77
77
- client : rpcClient ,
78
- txServiceClient : tx .NewServiceClient (grpcConnection ),
78
+ client : rpcClient ,
79
+ txServiceClient : tx .NewServiceClient (grpcConnection ),
80
+ ignoreConnectVoteExtensionTx : cfg .IgnoreConnectVoteExtensionTx ,
79
81
}, nil
80
82
}
81
83
@@ -269,9 +271,14 @@ func (cp *Node) Tx(hash string) (*types.Tx, error) {
269
271
}
270
272
271
273
// Txs implements node.Node
274
+
272
275
func (cp * Node ) Txs (block * tmctypes.ResultBlock ) ([]* types.Tx , error ) {
273
- txResponses := make ([]* types.Tx , len (block .Block .Txs ))
274
- for i , tmTx := range block .Block .Txs {
276
+ txs := block .Block .Txs
277
+ if cp .ignoreConnectVoteExtensionTx && len (block .Block .Txs ) > 0 {
278
+ txs = block .Block .Txs [1 :]
279
+ }
280
+ txResponses := make ([]* types.Tx , len (txs ))
281
+ for i , tmTx := range txs {
275
282
txResponse , err := cp .Tx (fmt .Sprintf ("%X" , cp .computeTxHash (tmTx )))
276
283
if err != nil {
277
284
return nil , err
0 commit comments