kaspad/testing/integration/notifications_test.go
Lazzeruz 3bfd50a3d9 Dev init
Just some name changes, put in a stand in emission amount, and started copying the algo from Karlsen. Not release worthy yet. Therefore Dev branch exists now.

Also, for now this is for research purposes only. I got no clue what to build on top of Kaspa yet.
Help would be appreciated for ideas and implementations.
2023-12-09 20:46:33 +01:00

15 lines
391 B
Go

package integration
import (
"testing"
"github.com/zoomy-network/zoomyd/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)
}
}