mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-07 14:46:44 +00:00

* [NOD-1225] Rename wire to domainmessage * [NOD-1225] Get rid of references to package wire in the code, and get rid of InvType
16 lines
355 B
Go
16 lines
355 B
Go
package integration
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/kaspanet/kaspad/domainmessage"
|
|
)
|
|
|
|
func setOnBlockAddedHandler(t *testing.T, harness *appHarness, handler func(header *domainmessage.BlockHeader)) {
|
|
err := harness.rpcClient.NotifyBlocks()
|
|
if err != nil {
|
|
t.Fatalf("Error from NotifyBlocks: %s", err)
|
|
}
|
|
harness.rpcClient.onBlockAdded = handler
|
|
}
|