From 21d1cc3fe888b80903abc3b846126c403ebfdbd0 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Mon, 21 May 2018 15:06:07 +0200 Subject: [PATCH] contractcourt/chain_arbitrator: remove BeginCoopChanClose --- contractcourt/chain_arbitrator.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/contractcourt/chain_arbitrator.go b/contractcourt/chain_arbitrator.go index aa9a956a..1e2079b7 100644 --- a/contractcourt/chain_arbitrator.go +++ b/contractcourt/chain_arbitrator.go @@ -737,20 +737,5 @@ func (c *ChainArbitrator) SubscribeChannelEvents( return watcher.SubscribeChannelEvents(), nil } -// BeginCoopChanClose allows the initiator or responder to a cooperative -// channel closure to signal to the ChainArbitrator that we're starting close -// negotiation. The caller can use this context to allow the underlying chain -// watcher to be prepared to act if *any* of the transactions that may -// potentially be signed off on during fee negotiation are confirmed. -func (c *ChainArbitrator) BeginCoopChanClose(chanPoint wire.OutPoint) (*CooperativeCloseCtx, error) { - watcher, ok := c.activeWatchers[chanPoint] - if !ok { - return nil, fmt.Errorf("unable to find watcher for: %v", - chanPoint) - } - - return watcher.BeginCooperativeClose(), nil -} - // TODO(roasbeef): arbitration reports // * types: contested, waiting for success conf, etc