Skip to content
Snippets Groups Projects
Commit 4d6a560a authored by capossele's avatar capossele
Browse files

:zap: removes go routine in the TSA

parent 19f276af
Branches
Tags
No related merge requests found
...@@ -11,11 +11,9 @@ var PLUGIN = node.NewPlugin("Tipselection", node.Enabled, configure, run) ...@@ -11,11 +11,9 @@ var PLUGIN = node.NewPlugin("Tipselection", node.Enabled, configure, run)
func configure(node *node.Plugin) { func configure(node *node.Plugin) {
tangle.Events.TransactionSolid.Attach(events.NewClosure(func(transaction *value_transaction.ValueTransaction) { tangle.Events.TransactionSolid.Attach(events.NewClosure(func(transaction *value_transaction.ValueTransaction) {
go func() { tips.Delete(transaction.GetBranchTransactionHash())
tips.Delete(transaction.GetBranchTransactionHash()) tips.Delete(transaction.GetTrunkTransactionHash())
tips.Delete(transaction.GetTrunkTransactionHash()) tips.Set(transaction.GetHash(), transaction.GetHash())
tips.Set(transaction.GetHash(), transaction.GetHash())
}()
})) }))
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment