From b02f5d6f3d5c49290bfcab3cdf94ea4978fe9d92 Mon Sep 17 00:00:00 2001
From: Wolfgang Welz <welzwo@gmail.com>
Date: Wed, 19 Jun 2019 17:57:37 +0200
Subject: [PATCH] Use TransactionStored event for the zmq

---
 plugins/zeromq/plugin.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugins/zeromq/plugin.go b/plugins/zeromq/plugin.go
index c5299c71..7d4472cd 100644
--- a/plugins/zeromq/plugin.go
+++ b/plugins/zeromq/plugin.go
@@ -30,8 +30,7 @@ func configure(plugin *node.Plugin) {
 		}
 	}))
 
-	// TODO: should be tangle.Events.TransactionStored
-	tangle.Events.TransactionSolid.Attach(events.NewClosure(func(tx *value_transaction.ValueTransaction) {
+	tangle.Events.TransactionStored.Attach(events.NewClosure(func(tx *value_transaction.ValueTransaction) {
 		// create goroutine for every event
 		go func() {
 			if err := publishTx(tx); err != nil {
-- 
GitLab