mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-29 06:42:56 +02:00
itest+lntest: stop using pointer to chainhash.Hash
This commit fixes the methods used in `lntest` so they stop using pointers to chainhash.
This commit is contained in:
@@ -534,7 +534,7 @@ func (h *HarnessTest) AssertTopologyChannelClosed(hn *node.HarnessNode,
|
||||
// by consuming a message from the passed close channel stream. Returns the
|
||||
// closing txid if found.
|
||||
func (h HarnessTest) WaitForChannelCloseEvent(
|
||||
stream rpc.CloseChanClient) *chainhash.Hash {
|
||||
stream rpc.CloseChanClient) chainhash.Hash {
|
||||
|
||||
// Consume one event.
|
||||
event, err := h.ReceiveCloseChannelUpdate(stream)
|
||||
@@ -548,7 +548,7 @@ func (h HarnessTest) WaitForChannelCloseEvent(
|
||||
require.NoErrorf(h, err, "wrong format found in closing txid: %v",
|
||||
resp.ChanClose.ClosingTxid)
|
||||
|
||||
return txid
|
||||
return *txid
|
||||
}
|
||||
|
||||
// AssertNumWaitingClose checks that a PendingChannels response from the node
|
||||
@@ -634,7 +634,7 @@ func (h *HarnessTest) AssertNumPendingForceClose(hn *node.HarnessNode,
|
||||
// - assert the node has seen the channel close update.
|
||||
func (h *HarnessTest) AssertStreamChannelCoopClosed(hn *node.HarnessNode,
|
||||
cp *lnrpc.ChannelPoint, anchors bool,
|
||||
stream rpc.CloseChanClient) *chainhash.Hash {
|
||||
stream rpc.CloseChanClient) chainhash.Hash {
|
||||
|
||||
// Assert the channel is waiting close.
|
||||
resp := h.AssertChannelWaitingClose(hn, cp)
|
||||
@@ -682,7 +682,7 @@ func (h *HarnessTest) AssertStreamChannelCoopClosed(hn *node.HarnessNode,
|
||||
// confirmed.
|
||||
func (h *HarnessTest) AssertStreamChannelForceClosed(hn *node.HarnessNode,
|
||||
cp *lnrpc.ChannelPoint, anchorSweep bool,
|
||||
stream rpc.CloseChanClient) *chainhash.Hash {
|
||||
stream rpc.CloseChanClient) chainhash.Hash {
|
||||
|
||||
// Assert the channel is waiting close.
|
||||
resp := h.AssertChannelWaitingClose(hn, cp)
|
||||
|
Reference in New Issue
Block a user