Skip to content
Snippets Groups Projects
Commit b02f5d6f authored by Wolfgang Welz's avatar Wolfgang Welz
Browse files

Use TransactionStored event for the zmq

parent db0aae0b
Branches
Tags
No related merge requests found
...@@ -30,8 +30,7 @@ func configure(plugin *node.Plugin) { ...@@ -30,8 +30,7 @@ func configure(plugin *node.Plugin) {
} }
})) }))
// TODO: should be tangle.Events.TransactionStored tangle.Events.TransactionStored.Attach(events.NewClosure(func(tx *value_transaction.ValueTransaction) {
tangle.Events.TransactionSolid.Attach(events.NewClosure(func(tx *value_transaction.ValueTransaction) {
// create goroutine for every event // create goroutine for every event
go func() { go func() {
if err := publishTx(tx); err != nil { if err := publishTx(tx); err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment