Skip to content

Commit

Permalink
moving faucet compose to use new infra sub domain containing the infr…
Browse files Browse the repository at this point in the history
…astructure. Some small bug fixes (#180)
  • Loading branch information
theflyingcodr authored Aug 3, 2022
1 parent 0ae0e3c commit 2c934c9
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion config/viper.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (v *ViperConfig) WithHeadersClient() ConfigurationLoader {
func (v *ViperConfig) WithWallet() ConfigurationLoader {
v.Wallet = &Wallet{
Network: NetworkType(viper.GetString(EnvNetwork)),
SPVRequired: viper.GetBool(EnvWalletSpvRequired),
SPVRequired: false, // disabled for now until new proof method is available viper.GetBool(EnvWalletSpvRequired),
PaymentExpiryHours: viper.GetInt64(EnvPaymentExpiry),
PayoutLimitEnabled: viper.GetBool(EnvWalletPayoutLimitEnabled),
PayoutLimitSatoshis: viper.GetUint64(EnvWalletPayoutLimitSats),
Expand Down
14 changes: 7 additions & 7 deletions docker-compose.faucet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ version: "3.7"
services:
payd:
container_name: payd
image: libsv/payd:0.1.11
image: libsv/payd:0.1.13
environment:
DB_DSN: "file:paydb/wallet.db?_foreign_keys=true&pooling=true"
LOG_LEVEL: "debug"
DPP_HOST: "wss://faucet.bitcoinsv.io/dpp/ws"
MAPI_CALLBACK_HOST: "http://faucet.bitcoinsv.io/dpp"
LOG_LEVEL: "info"
DPP_HOST: "wss://infra.bitcoinsv.io/dpp/ws"
MAPI_CALLBACK_HOST: "http://infra.bitcoinsv.io/dpp"
MAPI_MINERURL: "https://mapi.taal.com"
MAPI_TOKEN: "Bearer testnet_27986b25bffa600482251a19e984f04d"
MAPI_MINERNAME: "taal"
PEERCHANNELS_HOST: "faucet.bitcoinsv.io"
PEERCHANNELS_HOST: "infra.bitcoinsv.io"
PEERCHANNELS_PATH: "peerchannels"
PEERCHANNELS_TLS: 'true'
WALLET_SPVREQUIRED: 'true'
WALLET_SPVREQUIRED: 'false'
volumes:
- ./run/regtest/payd:/paydb

payd-merchant:
container_name: payd-merchant
image: libsv/payd:0.1.11
image: libsv/payd:0.1.13
volumes:
- ./run/regtest/payd-merchant:/paydb

4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.7"
services:
payd:
container_name: payd
image: libsv/payd:0.1.11
image: libsv/payd:0.1.13
environment:
DB_DSN: "file:paydb/wallet.db?_foreign_keys=true&pooling=true"
LOG_LEVEL: "info"
Expand All @@ -24,7 +24,7 @@ services:

payd-merchant:
container_name: payd-merchant
image: libsv/payd:0.1.11
image: libsv/payd:0.1.13
environment:
DB_DSN: "file:paydb/merchant-wallet.db?_foreign_keys=true&pooling=true"
SERVER_HOST: payd-merchant:28443
Expand Down
1 change: 0 additions & 1 deletion service/peerchannels_notify.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ func (p *peerChannelsNotifySvc) listen(ctx context.Context, sub *payd.PeerChanne
in <- true
}
}()

for {
select {
case <-ctx.Done():
Expand Down
2 changes: 1 addition & 1 deletion service/proofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ func (p *proofs) HandlePeerChannelsMessage(ctx context.Context, msgs spvchannels
}
p.l.Debugf("handling peer channel message - stored")
}
return false, nil
return true, nil
}

0 comments on commit 2c934c9

Please sign in to comment.