mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-25 15:06:07 +00:00
15 lines
387 B
Go
15 lines
387 B
Go
package integration
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/c4ei/YunSeokYeol/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)
|
|
}
|
|
}
|