@@ -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 ,
0 commit comments