Skip to content

Commit a7c0510

Browse files
committed
tapcfg+tapgarden: remove conditions around proof courier
Now that we have enabled a proof courier for all integration tests, we don't need to conditionally load the config anymore.
1 parent 76bb5ae commit a7c0510

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

tapcfg/server.go

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,18 +231,6 @@ func genServerConfig(cfg *Config, cfgLogger btclog.Logger,
231231
}
232232
}
233233

234-
// TODO(ffranr): This logic is leftover for integration tests which
235-
// do not yet enable a proof courier. Remove once all integration tests
236-
// support a proof courier.
237-
var proofCourierCfg *proof.CourierCfg
238-
if cfg.HashMailCourier != nil {
239-
proofCourierCfg = &proof.CourierCfg{
240-
ReceiverAckTimeout: cfg.HashMailCourier.ReceiverAckTimeout,
241-
BackoffCfg: cfg.HashMailCourier.BackoffCfg,
242-
TransferLog: assetStore,
243-
}
244-
}
245-
246234
reOrgWatcher := tapgarden.NewReOrgWatcher(&tapgarden.ReOrgWatcherConfig{
247235
ChainBridge: chainBridge,
248236
GroupVerifier: tapgarden.GenGroupVerifier(
@@ -330,6 +318,15 @@ func genServerConfig(cfg *Config, cfgLogger btclog.Logger,
330318
ChainParams: &tapChainParams,
331319
})
332320

321+
// Addresses can have different proof couriers configured, but both
322+
// types of couriers that currently exist will receive this config upon
323+
// initialization.
324+
proofCourierCfg := &proof.CourierCfg{
325+
ReceiverAckTimeout: cfg.HashMailCourier.ReceiverAckTimeout,
326+
BackoffCfg: cfg.HashMailCourier.BackoffCfg,
327+
TransferLog: assetStore,
328+
}
329+
333330
return &tap.Config{
334331
DebugLevel: cfg.DebugLevel,
335332
RuntimeID: runtimeID,

tapgarden/custodian.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -400,13 +400,6 @@ func (c *Custodian) inspectWalletTx(walletTx *lndclient.Transaction) error {
400400
continue
401401
}
402402

403-
// TODO(ffranr): This proof courier disabled check should be
404-
// removed. It was implemented because some integration test do
405-
// not setup and use a proof courier.
406-
if c.cfg.ProofCourierCfg == nil {
407-
continue
408-
}
409-
410403
// Now that we've seen this output on chain, we'll launch a
411404
// goroutine to use the ProofCourier to import the proof into
412405
// our local DB.

0 commit comments

Comments
 (0)