From 7f89fae316d0c2cad62fd2e26c58ebe773ac9e67 Mon Sep 17 00:00:00 2001 From: brewmaster012 <88689859+brewmaster012@users.noreply.github.com> Date: Tue, 7 Nov 2023 16:21:31 -0600 Subject: [PATCH] fix!: unconfirmed pending cctx should prevent further outbound tx signing (#1370) * add pending cctx check in add out tx * cap the size of each outtx tracker to 2 * increase look back to 1000 in CctxAllPending() RPC * zetaclient: refuse to sign outtx with nonce too big bigger than 120+earliest pending cctx nonce * add a FIXME to remove timeout in observeOutTx * use const variable for better documentation * update make generate * fix unit test of AddToOutTxTracker * fix return code of MsgAddOutTxTracker --------- Co-authored-by: brewmaster012 Co-authored-by: brewmaster012 <> --- docs/openapi/openapi.swagger.yaml | 4 + docs/spec/crosschain/messages.md | 1 + proto/crosschain/tx.proto | 4 +- typescript/crosschain/tx_pb.d.ts | 7 + x/crosschain/keeper/cctx_utils.go | 8 + x/crosschain/keeper/keeper_cross_chain_tx.go | 2 +- .../keeper/msg_server_add_to_outtx_tracker.go | 15 +- .../msg_server_add_to_outtx_tracker_test.go | 28 ++- x/crosschain/types/tx.pb.go | 230 +++++++++++------- zetaclient/evm_client.go | 1 + zetaclient/zetacore_observer.go | 5 + 11 files changed, 201 insertions(+), 104 deletions(-) diff --git a/docs/openapi/openapi.swagger.yaml b/docs/openapi/openapi.swagger.yaml index 440c31d739..598043ae06 100644 --- a/docs/openapi/openapi.swagger.yaml +++ b/docs/openapi/openapi.swagger.yaml @@ -50609,6 +50609,10 @@ definitions: type: object crosschainMsgAddToOutTxTrackerResponse: type: object + properties: + is_removed: + type: boolean + title: if the tx was removed from the tracker due to no pending cctx crosschainMsgCreateTSSVoterResponse: type: object crosschainMsgGasPriceVoterResponse: diff --git a/docs/spec/crosschain/messages.md b/docs/spec/crosschain/messages.md index 7ad44e674e..f167df5c94 100644 --- a/docs/spec/crosschain/messages.md +++ b/docs/spec/crosschain/messages.md @@ -4,6 +4,7 @@ AddToOutTxTracker adds a new record to the outbound transaction tracker. only the admin policy account and the observer validators are authorized to broadcast this message without proof. +If no pending cctx is found, the tracker is removed, if there is an existed tracker with the nonce & chainID. ```proto message MsgAddToOutTxTracker { diff --git a/proto/crosschain/tx.proto b/proto/crosschain/tx.proto index b34fa2f47d..eabdbf19e1 100644 --- a/proto/crosschain/tx.proto +++ b/proto/crosschain/tx.proto @@ -75,7 +75,9 @@ message MsgAddToOutTxTracker { int64 tx_index = 7; } -message MsgAddToOutTxTrackerResponse {} +message MsgAddToOutTxTrackerResponse { + bool is_removed = 1; // if the tx was removed from the tracker due to no pending cctx +} message MsgRemoveFromOutTxTracker { string creator = 1; diff --git a/typescript/crosschain/tx_pb.d.ts b/typescript/crosschain/tx_pb.d.ts index 1e223c00da..98f7fd5c3a 100644 --- a/typescript/crosschain/tx_pb.d.ts +++ b/typescript/crosschain/tx_pb.d.ts @@ -322,6 +322,13 @@ export declare class MsgAddToOutTxTracker extends Message * @generated from message zetachain.zetacore.crosschain.MsgAddToOutTxTrackerResponse */ export declare class MsgAddToOutTxTrackerResponse extends Message { + /** + * if the tx was removed from the tracker due to no pending cctx + * + * @generated from field: bool is_removed = 1; + */ + isRemoved: boolean; + constructor(data?: PartialMessage); static readonly runtime: typeof proto3; diff --git a/x/crosschain/keeper/cctx_utils.go b/x/crosschain/keeper/cctx_utils.go index 63c30746e2..3bd7cf241b 100644 --- a/x/crosschain/keeper/cctx_utils.go +++ b/x/crosschain/keeper/cctx_utils.go @@ -121,3 +121,11 @@ func (k Keeper) GetRevertGasLimit(ctx sdk.Context, cctx types.CrossChainTx) (uin return 0, nil } + +func IsPending(cctx types.CrossChainTx) bool { + // pending inbound is not considered a "pending" state because it has not reached consensus yet + if cctx.CctxStatus.Status == types.CctxStatus_PendingOutbound || cctx.CctxStatus.Status == types.CctxStatus_PendingRevert { + return true + } + return false +} diff --git a/x/crosschain/keeper/keeper_cross_chain_tx.go b/x/crosschain/keeper/keeper_cross_chain_tx.go index a53c1159c4..3ceb63ada5 100644 --- a/x/crosschain/keeper/keeper_cross_chain_tx.go +++ b/x/crosschain/keeper/keeper_cross_chain_tx.go @@ -181,7 +181,7 @@ func (k Keeper) CctxAllPending(c context.Context, req *types.QueryAllCctxPending // now query the previous nonces up to 100 prior to find any pending cctx that we might have missed // need this logic because a confirmation of higher nonce will automatically update the p.NonceLow // therefore might mask some lower nonce cctx that is still pending. - startNonce := p.NonceLow - 100 + startNonce := p.NonceLow - 1000 if startNonce < 0 { startNonce = 0 } diff --git a/x/crosschain/keeper/msg_server_add_to_outtx_tracker.go b/x/crosschain/keeper/msg_server_add_to_outtx_tracker.go index c562f2344b..3c77f829b6 100644 --- a/x/crosschain/keeper/msg_server_add_to_outtx_tracker.go +++ b/x/crosschain/keeper/msg_server_add_to_outtx_tracker.go @@ -20,6 +20,7 @@ import ( // AddToOutTxTracker adds a new record to the outbound transaction tracker. // only the admin policy account and the observer validators are authorized to broadcast this message without proof. +// If no pending cctx is found, the tracker is removed, if there is an existed tracker with the nonce & chainID. func (k msgServer) AddToOutTxTracker(goCtx context.Context, msg *types.MsgAddToOutTxTracker) (*types.MsgAddToOutTxTrackerResponse, error) { ctx := sdk.UnwrapSDKContext(goCtx) chain := k.zetaObserverKeeper.GetParams(ctx).GetChainFromChainID(msg.ChainId) @@ -51,6 +52,18 @@ func (k msgServer) AddToOutTxTracker(goCtx context.Context, msg *types.MsgAddToO isProven = true } + cctx, err := k.CctxByNonce(ctx, &types.QueryGetCctxByNonceRequest{ + ChainID: msg.ChainId, + Nonce: msg.Nonce, + }) + if err != nil || cctx == nil || cctx.CrossChainTx == nil { + return nil, cosmoserrors.Wrap(types.ErrCannotFindCctx, "cannot add out tx: no corresponding cctx found") + } + if !IsPending(*cctx.CrossChainTx) { + k.RemoveOutTxTracker(ctx, msg.ChainId, msg.Nonce) + return &types.MsgAddToOutTxTrackerResponse{IsRemoved: true}, nil + } + tracker, found := k.GetOutTxTracker(ctx, msg.ChainId, msg.Nonce) hash := types.TxHashList{ TxHash: msg.TxHash, @@ -84,7 +97,7 @@ func (k msgServer) AddToOutTxTracker(goCtx context.Context, msg *types.MsgAddToO hash.Proved = true tracker.HashList = append([]*types.TxHashList{&hash}, tracker.HashList...) k.Logger(ctx).Info("Proof'd outbound transaction") - } else { + } else if len(tracker.HashList) < 2 { tracker.HashList = append(tracker.HashList, &hash) } k.SetOutTxTracker(ctx, tracker) diff --git a/x/crosschain/keeper/msg_server_add_to_outtx_tracker_test.go b/x/crosschain/keeper/msg_server_add_to_outtx_tracker_test.go index c43bd45ce8..2751a62c1d 100644 --- a/x/crosschain/keeper/msg_server_add_to_outtx_tracker_test.go +++ b/x/crosschain/keeper/msg_server_add_to_outtx_tracker_test.go @@ -25,7 +25,7 @@ func TestMsgServer_AddToOutTxTracker(t *testing.T) { txIndex, block, header, headerRLP, _, tx, err := sample.Proof() require.NoError(t, err) setupVerificationParams(zk, ctx, txIndex, chainID, header, headerRLP, block) - setupTss(k, ctx) + setupTssAndNonceToCctx(k, ctx, chainID, 0) msgServer := keeper.NewMsgServerImpl(*k) _, err = msgServer.AddToOutTxTracker(ctx, &types.MsgAddToOutTxTracker{ Creator: admin, @@ -47,7 +47,7 @@ func TestMsgServer_AddToOutTxTracker(t *testing.T) { txIndex, block, header, headerRLP, proof, tx, err := sample.Proof() require.NoError(t, err) setupVerificationParams(zk, ctx, txIndex, chainID, header, headerRLP, block) - setupTss(k, ctx) + setupTssAndNonceToCctx(k, ctx, chainID, int64(tx.Nonce())) msgServer := keeper.NewMsgServerImpl(*k) _, err = msgServer.AddToOutTxTracker(ctx, &types.MsgAddToOutTxTracker{ Creator: sample.AccAddress(), @@ -69,7 +69,7 @@ func TestMsgServer_AddToOutTxTracker(t *testing.T) { txIndex, block, header, headerRLP, proof, tx, err := sample.Proof() require.NoError(t, err) setupVerificationParams(zk, ctx, txIndex, chainID, header, headerRLP, block) - setupTss(k, ctx) + setupTssAndNonceToCctx(k, ctx, chainID, 1) msgServer := keeper.NewMsgServerImpl(*k) _, err = msgServer.AddToOutTxTracker(ctx, &types.MsgAddToOutTxTracker{ Creator: sample.AccAddress(), @@ -91,7 +91,7 @@ func TestMsgServer_AddToOutTxTracker(t *testing.T) { txIndex, block, header, headerRLP, proof, tx, err := sample.Proof() require.NoError(t, err) setupVerificationParams(zk, ctx, txIndex, chainID, header, headerRLP, block) - setupTss(k, ctx) + setupTssAndNonceToCctx(k, ctx, chainID, int64(tx.Nonce())) msgServer := keeper.NewMsgServerImpl(*k) _, err = msgServer.AddToOutTxTracker(ctx, &types.MsgAddToOutTxTracker{ Creator: sample.AccAddress(), @@ -113,7 +113,7 @@ func TestMsgServer_AddToOutTxTracker(t *testing.T) { txIndex, block, header, headerRLP, _, tx, err := sample.Proof() require.NoError(t, err) setupVerificationParams(zk, ctx, txIndex, chainID, header, headerRLP, block) - setupTss(k, ctx) + setupTssAndNonceToCctx(k, ctx, chainID, int64(tx.Nonce())) msgServer := keeper.NewMsgServerImpl(*k) _, err = msgServer.AddToOutTxTracker(ctx, &types.MsgAddToOutTxTracker{ Creator: sample.AccAddress(), @@ -134,7 +134,7 @@ func TestMsgServer_AddToOutTxTracker(t *testing.T) { txIndex, block, header, headerRLP, proof, tx, err := sample.Proof() require.NoError(t, err) setupVerificationParams(zk, ctx, txIndex, chainID, header, headerRLP, block) - setupTss(k, ctx) + setupTssAndNonceToCctx(k, ctx, chainID, int64(tx.Nonce())) msgServer := keeper.NewMsgServerImpl(*k) _, err = msgServer.AddToOutTxTracker(ctx, &types.MsgAddToOutTxTracker{ Creator: sample.AccAddress(), @@ -151,8 +151,22 @@ func TestMsgServer_AddToOutTxTracker(t *testing.T) { }) } -func setupTss(k *keeper.Keeper, ctx sdk.Context) { +func setupTssAndNonceToCctx(k *keeper.Keeper, ctx sdk.Context, chainId, nonce int64) { k.SetTSS(ctx, types.TSS{ TssPubkey: "zetapub1addwnpepq28c57cvcs0a2htsem5zxr6qnlvq9mzhmm76z3jncsnzz32rclangr2g35p", }) + cctx := types.CrossChainTx{ + Creator: "any", + Index: "0x123", + CctxStatus: &types.Status{ + Status: types.CctxStatus_PendingOutbound, + }, + } + k.SetCrossChainTx(ctx, cctx) + k.SetNonceToCctx(ctx, types.NonceToCctx{ + ChainId: chainId, + Nonce: nonce, + CctxIndex: "0x123", + Tss: "zetapub1addwnpepq28c57cvcs0a2htsem5zxr6qnlvq9mzhmm76z3jncsnzz32rclangr2g35p", + }) } diff --git a/x/crosschain/types/tx.pb.go b/x/crosschain/types/tx.pb.go index 279eeffffd..a5615c8450 100644 --- a/x/crosschain/types/tx.pb.go +++ b/x/crosschain/types/tx.pb.go @@ -573,6 +573,7 @@ func (m *MsgAddToOutTxTracker) GetTxIndex() int64 { } type MsgAddToOutTxTrackerResponse struct { + IsRemoved bool `protobuf:"varint,1,opt,name=is_removed,json=isRemoved,proto3" json:"is_removed,omitempty"` } func (m *MsgAddToOutTxTrackerResponse) Reset() { *m = MsgAddToOutTxTrackerResponse{} } @@ -608,6 +609,13 @@ func (m *MsgAddToOutTxTrackerResponse) XXX_DiscardUnknown() { var xxx_messageInfo_MsgAddToOutTxTrackerResponse proto.InternalMessageInfo +func (m *MsgAddToOutTxTrackerResponse) GetIsRemoved() bool { + if m != nil { + return m.IsRemoved + } + return false +} + type MsgRemoveFromOutTxTracker struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` ChainId int64 `protobuf:"varint,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` @@ -1467,100 +1475,101 @@ func init() { func init() { proto.RegisterFile("crosschain/tx.proto", fileDescriptor_81d6d611190b7635) } var fileDescriptor_81d6d611190b7635 = []byte{ - // 1487 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xdd, 0x4e, 0x1b, 0xc7, - 0x17, 0x67, 0xff, 0x80, 0xb1, 0x8f, 0x31, 0x81, 0x85, 0x84, 0xcd, 0x12, 0x0c, 0x59, 0xfe, 0x49, - 0x51, 0x15, 0xec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x07, - 0x8b, 0x4a, 0x00, 0xd4, 0x8f, 0x46, 0x04, 0xc4, 0xaa, 0x1b, 0x00, 0x1d, 0x93, 0xcc, 0x8d, 0xc1, - 0x62, 0x4e, 0x76, 0xab, 0x1f, 0x8c, 0xb2, 0x3b, 0xd6, 0xf8, 0x8b, 0x04, 0x4a, 0xcf, 0x31, 0x66, - 0x88, 0xd2, 0xea, 0x85, 0x55, 0x37, 0xcf, 0x8f, 0x8d, 0x8d, 0xfb, 0x49, 0x82, 0xc5, 0x5e, 0x17, - 0xcc, 0xdd, 0x51, 0xe5, 0xc7, 0x50, 0xf5, 0xfe, 0xb9, 0xa1, 0x9d, 0x15, 0xda, 0xf5, 0x5c, 0x1d, - 0xa2, 0x42, 0x93, 0x88, 0x61, 0x2a, 0xb4, 0xc7, 0xf3, 0x31, 0x3c, 0x3b, 0x4e, 0xbd, 0xce, 0x87, - 0x38, 0x3b, 0xba, 0x31, 0xc3, 0x9c, 0x1d, 0xbd, 0x5e, 0xed, 0xf2, 0xd7, 0x70, 0xa1, 0xfb, 0x6f, - 0x9e, 0x5b, 0x83, 0xc5, 0x75, 0x41, 0xd4, 0xbb, 0x23, 0x43, 0x22, 0x03, 0x36, 0x1f, 0x3f, 0x7f, - 0x9d, 0x97, 0x5e, 0xbc, 0xce, 0x4b, 0x7f, 0xbd, 0xce, 0x4b, 0xdf, 0xbf, 0xc9, 0x8f, 0xbd, 0x78, - 0x93, 0x1f, 0xfb, 0xe3, 0x4d, 0x7e, 0xec, 0xd9, 0xad, 0x8e, 0x7b, 0x3c, 0x14, 0xba, 0xc1, 0xff, - 0xef, 0x8a, 0xe4, 0x17, 0x5b, 0xc5, 0xce, 0x7f, 0xc1, 0xc2, 0x6b, 0xbd, 0x9a, 0x62, 0xff, 0x5f, - 0xdd, 0xfe, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x49, 0x4b, 0x22, 0xc9, 0x20, 0x13, 0x00, 0x00, + // 1504 bytes of a gzipped FileDescriptorProto + 0x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, 0xdf, 0x2c, 0x8f, 0x3c, 0xbb, 0xd5, 0x76, 0x8f, 0x47, 0x42, 0x37, 0xf8, + 0xdf, 0x61, 0xb1, 0xfc, 0x42, 0xb3, 0xd0, 0xfe, 0x27, 0x59, 0x74, 0xad, 0x57, 0x32, 0xec, 0xef, + 0xad, 0xdb, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x34, 0xdd, 0xf5, 0x5e, 0x3f, 0x13, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -2419,6 +2428,16 @@ func (m *MsgAddToOutTxTrackerResponse) MarshalToSizedBuffer(dAtA []byte) (int, e _ = i var l int _ = l + if m.IsRemoved { + i-- + if m.IsRemoved { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 + } return len(dAtA) - i, nil } @@ -3215,6 +3234,9 @@ func (m *MsgAddToOutTxTrackerResponse) Size() (n int) { } var l int _ = l + if m.IsRemoved { + n += 2 + } return n } @@ -4750,6 +4772,26 @@ func (m *MsgAddToOutTxTrackerResponse) Unmarshal(dAtA []byte) error { return fmt.Errorf("proto: MsgAddToOutTxTrackerResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field IsRemoved", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.IsRemoved = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) diff --git a/zetaclient/evm_client.go b/zetaclient/evm_client.go index cc68008983..09a68a390b 100644 --- a/zetaclient/evm_client.go +++ b/zetaclient/evm_client.go @@ -557,6 +557,7 @@ func (ob *EVMChainClient) observeOutTx() { if err != nil { continue } + //FIXME: remove this timeout here to ensure that all trackers are queried outTimeout := time.After(time.Duration(timeoutNonce) * time.Second) TRACKERLOOP: // Skip old gabbage trackers as we spent too much time on querying them diff --git a/zetaclient/zetacore_observer.go b/zetaclient/zetacore_observer.go index fa5b8c7c46..fb208dd98d 100644 --- a/zetaclient/zetacore_observer.go +++ b/zetaclient/zetacore_observer.go @@ -178,6 +178,11 @@ func (co *CoreObserver) startSendScheduler() { co.logger.ZetaChainWatcher.Error().Msgf("mismatch chainid: want %d, got %d", c.ChainId, params.ReceiverChainId) continue } + const MaxLookaheadNonce = 120 + if params.OutboundTxTssNonce > cctxList[0].GetCurrentOutTxParam().OutboundTxTssNonce+MaxLookaheadNonce { + co.logger.ZetaChainWatcher.Error().Msgf("nonce too high: signing %d, earliest pending %d", params.OutboundTxTssNonce, cctxList[0].GetCurrentOutTxParam().OutboundTxTssNonce) + break + } // #nosec G701 range is verified currentHeight := uint64(bn) nonce := params.OutboundTxTssNonce