-
Wolfgang Welz authored
* fix: use queue for neighbor connection * refactor: do not request transactions via event * fix: remove unused connection * chore: fix linter warnings * feat: improve gossip events and logs * fix: log after connection is closed
Wolfgang Welz authored* fix: use queue for neighbor connection * refactor: do not request transactions via event * fix: remove unused connection * chore: fix linter warnings * feat: improve gossip events and logs * fix: log after connection is closed
events.go 515 B
package tangle
import (
"github.com/iotaledger/goshimmer/packages/model/value_transaction"
"github.com/iotaledger/hive.go/events"
)
var Events = struct {
TransactionStored *events.Event
TransactionSolid *events.Event
}{
TransactionStored: events.NewEvent(transactionCaller),
TransactionSolid: events.NewEvent(transactionCaller),
}
func transactionCaller(handler interface{}, params ...interface{}) {
handler.(func(*value_transaction.ValueTransaction))(params[0].(*value_transaction.ValueTransaction))
}