Skip to content

Commit 6c4523e

Browse files
authored
Merge pull request #228 from meshplus/fix/hotfix-release1.11
fix:fix model version
2 parents 3d200e1 + 535baa1 commit 6c4523e

File tree

6 files changed

+37
-3
lines changed

6 files changed

+37
-3
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ require (
2121
github.com/libp2p/go-libp2p-core v0.6.1
2222
github.com/meshplus/bitxhub-core v1.3.1-0.20210524071255-789fd9ab501c
2323
github.com/meshplus/bitxhub-kit v1.2.1-0.20210616114532-4849447f09e1
24-
github.com/meshplus/bitxhub-model v1.2.1-0.20210629020432-d98febd566c1
24+
github.com/meshplus/bitxhub-model v1.2.1-0.20210811024313-728f913a1397
2525
github.com/meshplus/bitxid v0.0.0-20210412025850-e0eaf0f9063a
2626
github.com/meshplus/go-bitxhub-client v1.3.1-0.20210701063659-a0836fbc1c78
2727
github.com/meshplus/go-lightp2p v0.0.0-20200817105923-6b3aee40fa54

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,8 @@ github.com/meshplus/bitxhub-model v1.2.1-0.20210524063354-5d48e2fee178 h1:z8KGkI
836836
github.com/meshplus/bitxhub-model v1.2.1-0.20210524063354-5d48e2fee178/go.mod h1:vwJ+sHPUyA2JELmUUDBol+7zA+7GcqutxzqXjsN0QLA=
837837
github.com/meshplus/bitxhub-model v1.2.1-0.20210629020432-d98febd566c1 h1:RKzc5fRFlSpvjlz3r8hkbhWA4Jwz99lqk7J4yb/D7Rk=
838838
github.com/meshplus/bitxhub-model v1.2.1-0.20210629020432-d98febd566c1/go.mod h1:IjgoQrsn1wthW7XcKRqgaZqCSlqNy0SBwF/7lmGSqXc=
839+
github.com/meshplus/bitxhub-model v1.2.1-0.20210811024313-728f913a1397 h1:8DnVfsUewtng8Qe6/AZZ8/tFaSFz0kQk+UWSCBP7Np4=
840+
github.com/meshplus/bitxhub-model v1.2.1-0.20210811024313-728f913a1397/go.mod h1:IjgoQrsn1wthW7XcKRqgaZqCSlqNy0SBwF/7lmGSqXc=
839841
github.com/meshplus/bitxid v0.0.0-20210412025850-e0eaf0f9063a h1:c4ESPDa60Jd4zfzZIGGTyzhfaVM3vKN+xV2G9BwIDGQ=
840842
github.com/meshplus/bitxid v0.0.0-20210412025850-e0eaf0f9063a/go.mod h1:vAldSRfDe2Qo7exsSTbchVmZWXPY7fhWQrRw18QJHho=
841843
github.com/meshplus/go-bitxhub-client v1.3.1-0.20210701063659-a0836fbc1c78 h1:mPGyfyMdVjxbHHan+B1f+szCgrdnAqOUNzYz0hwgBh4=

internal/syncer/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (syncer *WrapperSyncer) QueryIBTP(ibtpID string) (*pb.IBTP, bool, error) {
175175
if err != nil {
176176
return nil, false, err
177177
}
178-
return response.Tx.GetIBTP(), receipt.Status == pb.Receipt_SUCCESS, nil
178+
return response.Txs.Transactions[0].GetIBTP(), receipt.Status == pb.Receipt_SUCCESS, nil
179179
}
180180

181181
func (syncer *WrapperSyncer) ListenIBTP() <-chan *model.WrappedIBTP {

internal/syncer/syncer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func TestQueryIBTP(t *testing.T) {
296296
Status: pb.Receipt_FAILED,
297297
}
298298
normalResponse := &pb.GetTransactionResponse{
299-
Tx: normalTx,
299+
Txs: &pb.Transactions{Transactions: []pb.Transaction{normalTx}},
300300
}
301301
//badResponse := &pb.GetTransactionResponse{
302302
// Tx: tx,

pkg/plugins/grpc.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@ type GRPCServer struct {
1414
Impl Client
1515
}
1616

17+
func (s *GRPCServer) QueryFilterLockStart(ctx context.Context, request *pb.QueryFilterLockStartRequest) (*pb.QueryFilterLockStartResponse, error) {
18+
panic("implement me")
19+
}
20+
21+
func (s *GRPCServer) QueryLockEventByIndex(ctx context.Context, request *pb.QueryLockEventByIndexRequest) (*pb.LockEvent, error) {
22+
panic("implement me")
23+
}
24+
25+
func (s *GRPCServer) QueryAppchainIndex(ctx context.Context, empty *pb.Empty) (*pb.QueryAppchainIndexResponse, error) {
26+
panic("implement me")
27+
}
28+
29+
func (s *GRPCServer) QueryRelayIndex(ctx context.Context, empty *pb.Empty) (*pb.QueryRelayIndexResponse, error) {
30+
panic("implement me")
31+
}
32+
1733
func (s *GRPCServer) GetLockEvent(empty *pb.Empty, server pb.AppchainPlugin_GetLockEventServer) error {
1834
panic("implement me")
1935
}

pkg/plugins/plugin_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,22 @@ type mockAppchainPluginClient struct {
261261
count uint64
262262
}
263263

264+
func (mc *mockAppchainPluginClient) QueryFilterLockStart(ctx context.Context, in *pb.QueryFilterLockStartRequest, opts ...grpc.CallOption) (*pb.QueryFilterLockStartResponse, error) {
265+
panic("implement me")
266+
}
267+
268+
func (mc *mockAppchainPluginClient) QueryLockEventByIndex(ctx context.Context, in *pb.QueryLockEventByIndexRequest, opts ...grpc.CallOption) (*pb.LockEvent, error) {
269+
panic("implement me")
270+
}
271+
272+
func (mc *mockAppchainPluginClient) QueryAppchainIndex(ctx context.Context, in *pb.Empty, opts ...grpc.CallOption) (*pb.QueryAppchainIndexResponse, error) {
273+
panic("implement me")
274+
}
275+
276+
func (mc *mockAppchainPluginClient) QueryRelayIndex(ctx context.Context, in *pb.Empty, opts ...grpc.CallOption) (*pb.QueryRelayIndexResponse, error) {
277+
panic("implement me")
278+
}
279+
264280
func (*mockAppchainPluginClient) GetLockEvent(ctx context.Context, in *pb.Empty, opts ...grpc.CallOption) (pb.AppchainPlugin_GetLockEventClient, error) {
265281
panic("implement me")
266282
}

0 commit comments

Comments
 (0)