mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-09-13 13:00:10 +00:00
15 lines
386 B
Go
15 lines
386 B
Go
package integration
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/kaspanet/kaspad/app/appmessage"
|
|
)
|
|
|
|
func setOnBlockAddedHandler(t *testing.T, harness *appHarness, handler func(notification *appmessage.BlockAddedNotificationMessage)) {
|
|
err := harness.rpcClient.RegisterForBlockAddedNotifications(handler)
|
|
if err != nil {
|
|
t.Fatalf("Error from RegisterForBlockAddedNotifications: %s", err)
|
|
}
|
|
}
|