From 14bf9ee7665cf043d70d6f08f4f06d0a7042c293 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 28 May 2021 14:58:25 +0800
Subject: [PATCH] 20210528

---
 src/main/java/com/xcong/excoin/configurations/RabbitMqConfig.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/configurations/RabbitMqConfig.java b/src/main/java/com/xcong/excoin/configurations/RabbitMqConfig.java
index 00dcc4d..d43efca 100644
--- a/src/main/java/com/xcong/excoin/configurations/RabbitMqConfig.java
+++ b/src/main/java/com/xcong/excoin/configurations/RabbitMqConfig.java
@@ -131,6 +131,9 @@
     public static final String QUEUE_MSG_HISTORY = "queue_msg_history";
     public static final String ROUTING_KEY_MSG_HISTORY = "routing_key_msg_history";
 
+    public static final String QUEUE_TRC20_BLOCK = "QUEUE_TRC20_BLOCK";
+    public static final String ROUTING_TRC20_BLOCK = "ROUTING_TRC20_BLOCK";
+
     @Resource
     private ConnectionFactory connectionFactory;
 
@@ -196,6 +199,17 @@
     }
 
     @Bean
+    public Queue trc20Queue() {
+        return new Queue(QUEUE_TRC20_BLOCK);
+    }
+
+    @Bean
+    public Binding trc20Binding() {
+        return BindingBuilder.bind(trc20Queue()).to(defaultExchange()).with(ROUTING_TRC20_BLOCK);
+    }
+
+
+    @Bean
     public Queue testQueue() {
         return new Queue(QUEUE_TEST, true);
     }

--
Gitblit v1.9.1