contractcourt: remove TODO for checking double spends from PublishTx

This commit is contained in:
Johan T. Halseth 2018-02-05 17:26:35 -05:00
parent 3fd7f28b39
commit 2ae1b7dbbe
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26
2 changed files with 0 additions and 2 deletions

View File

@ -449,7 +449,6 @@ func (c *ChannelArbitrator) stateStep(bestHeight uint32, bestHash *chainhash.Has
// At this point, we'll now broadcast the commitment
// transaction itself.
if err := c.cfg.PublishTx(closeTx); err != nil {
// TODO(roasbeef): need to check for errors (duplicate)
log.Errorf("ChannelArbitrator(%v): unable to broadcast "+
"close tx: %v", c.cfg.ChanPoint, err)
return StateError, closeTx, err

View File

@ -582,7 +582,6 @@ func (h *htlcSuccessResolver) Resolve() (ContractResolver, error) {
//
// TODO(roasbeef): after changing sighashes send to tx bundler
if err := h.PublishTx(h.htlcResolution.SignedSuccessTx); err != nil {
// TODO(roasbeef): detect double spends
return nil, err
}