mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-27 07:48:44 +00:00
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.
15 lines
391 B
Go
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)
|
|
}
|
|
}
|