contractcourt: remove TODO for checking double spends from PublishTx

This commit is contained in:
Johan T. Halseth committed 2018-02-14 12:34:41 +01:00
1 parent 3fd7f28b39
commit 2ae1b7dbbe
2 files changed
-2

No files matched your search

-1
View File
@@ -449,7 +449,6 @@ func (c *ChannelArbitrator) stateStep(bestHeight uint32, bestHash *chainhash.Has
// At this point, we'll now broadcast the commitment // At this point, we'll now broadcast the commitment
// transaction itself. // transaction itself.
if err := c.cfg.PublishTx(closeTx); err != nil { if err := c.cfg.PublishTx(closeTx); err != nil {
// TODO(roasbeef): need to check for errors (duplicate)
log.Errorf("ChannelArbitrator(%v): unable to broadcast "+ log.Errorf("ChannelArbitrator(%v): unable to broadcast "+
"close tx: %v", c.cfg.ChanPoint, err) "close tx: %v", c.cfg.ChanPoint, err)
return StateError, closeTx, err return StateError, closeTx, err
-1
View File
@@ -582,7 +582,6 @@ func (h *htlcSuccessResolver) Resolve() (ContractResolver, error) {
// //
// TODO(roasbeef): after changing sighashes send to tx bundler // TODO(roasbeef): after changing sighashes send to tx bundler
if err := h.PublishTx(h.htlcResolution.SignedSuccessTx); err != nil { if err := h.PublishTx(h.htlcResolution.SignedSuccessTx); err != nil {
// TODO(roasbeef): detect double spends
return nil, err return nil, err
} }