fix merge: redeclared getEthPriorityInfoCmd
@@ -1293,40 +1293,6 @@ func getPriority(cmd *cobra.Command, args []string) {
ctx.Run()
}
-func getEthPriorityInfoCmd() *cobra.Command {
- cmd := &cobra.Command{
- Use: "priority",
- Short: "get priority id info",
- Run: getPriority,
- }
- getPriorityFlag(cmd)
- return cmd
-}
-
-func getPriorityFlag(cmd *cobra.Command) {
- cmd.Flags().Uint64P("priorityId", "i", 0, "eth priority id, id >= 0")
- cmd.MarkFlagRequired("priorityId")
-}
-
-func getPriority(cmd *cobra.Command, args []string) {
- rpcLaddr, _ := cmd.Flags().GetString("rpc_laddr")
- priorityId, _ := cmd.Flags().GetUint64("priorityId")
-
- var params rpctypes.Query4Jrpc
-
- params.Execer = zt.Zksync
- req := &zt.EthPriorityQueueID{
- ID: new(big.Int).SetUint64(priorityId).String(),
- }
-
- params.FuncName = "GetPriorityOpInfo"
- params.Payload = types.MustPBToJSON(req)
-
- var resp zt.OperationInfo
- ctx := jsonclient.NewRPCCtx(rpcLaddr, "Chain33.Query", params, &resp)
- ctx.Run()
-}
-
func getZkCommitProofCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "id",
