mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
d5abecbba9
This commit starts the construction of the new package `lntemp`. This package serves as the scaffolding while we migrate our old itest into the new one. Once the migration is finished, the package will be put back to `lntest`.
20 lines
438 B
Go
20 lines
438 B
Go
package rpc
|
|
|
|
import (
|
|
"github.com/lightningnetwork/lnd/lnrpc"
|
|
)
|
|
|
|
// =====================
|
|
// StateClient related RPCs.
|
|
// =====================
|
|
|
|
// SubscribeState makes a rpc call to StateClient and asserts there's no error.
|
|
func (h *HarnessRPC) SubscribeState() lnrpc.State_SubscribeStateClient {
|
|
client, err := h.State.SubscribeState(
|
|
h.runCtx, &lnrpc.SubscribeStateRequest{},
|
|
)
|
|
h.NoError(err, "SubscribeState")
|
|
|
|
return client
|
|
}
|