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
No related branches found
No related tags found
No related merge requests found
......@@ -11,11 +11,9 @@ var PLUGIN = node.NewPlugin("Tipselection", node.Enabled, configure, run)
func configure(node *node.Plugin) {
tangle.Events.TransactionSolid.Attach(events.NewClosure(func(transaction *value_transaction.ValueTransaction) {
go func() {
tips.Delete(transaction.GetBranchTransactionHash())
tips.Delete(transaction.GetTrunkTransactionHash())
tips.Set(transaction.GetHash(), transaction.GetHash())
}()
tips.Delete(transaction.GetBranchTransactionHash())
tips.Delete(transaction.GetTrunkTransactionHash())
tips.Set(transaction.GetHash(), transaction.GetHash())
}))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment