@@ -51,11 +51,11 @@ func SetupRestDeps(cfg *config.Config, l log.Logger, db *sqlx.DB, c *client.Clie
51
51
sqlLiteStore := paydSQL .NewSQLiteStore (db )
52
52
proofSvc := service .NewProofsService (sqlLiteStore )
53
53
54
- pcSvc := service .NewPeerChannelsSvc (sqlLiteStore , cfg .PeerChannels )
54
+ pcSvc := service .NewPeerChannelsSvc (sqlLiteStore , cfg .PeerChannels , & paydSQL. Transacter {} )
55
55
pcNotifSvc := service .NewPeerChannelsNotifyService (cfg .PeerChannels , pcSvc )
56
56
pcNotifSvc .RegisterHandler (payd .PeerChannelHandlerTypeProof , proofSvc )
57
57
58
- mapiStore := mapi .NewMapi (cfg .Mapi , mapiCli )
58
+ mapiStore := mapi .NewMapi (cfg .Mapi , mapiCli , l )
59
59
spvv , err := spv .NewPaymentVerifier (dataHttp .NewHeaderSVConnection (& http.Client {Timeout : time .Duration (cfg .HeadersClient .Timeout ) * time .Second }, cfg .HeadersClient .Address ))
60
60
if err != nil {
61
61
l .Fatal (err , "failed to create spv client" )
@@ -138,10 +138,10 @@ func SetupSocketDeps(cfg *config.Config, l log.Logger, db *sqlx.DB, c *client.Cl
138
138
}
139
139
sqlLiteStore := paydSQL .NewSQLiteStore (db )
140
140
proofSvc := service .NewProofsService (sqlLiteStore )
141
- pcSvc := service .NewPeerChannelsSvc (sqlLiteStore , cfg .PeerChannels )
141
+ pcSvc := service .NewPeerChannelsSvc (sqlLiteStore , cfg .PeerChannels , & paydSQL. Transacter {} )
142
142
pcNotifSvc := service .NewPeerChannelsNotifyService (cfg .PeerChannels , pcSvc )
143
143
pcNotifSvc .RegisterHandler (payd .PeerChannelHandlerTypeProof , proofSvc )
144
- mapiStore := mapi .NewMapi (cfg .Mapi , mapiCli )
144
+ mapiStore := mapi .NewMapi (cfg .Mapi , mapiCli , l )
145
145
spvv , err := spv .NewPaymentVerifier (dataHttp .NewHeaderSVConnection (& http.Client {Timeout : time .Duration (cfg .HeadersClient .Timeout ) * time .Second }, cfg .HeadersClient .Address ))
146
146
if err != nil {
147
147
l .Fatal (err , "failed to create spv client" )
0 commit comments