mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex.git
synced 2026-09-22 17:12:03 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87b3d7519c | ||
|
|
ed4e75c9ad | ||
|
|
b0cc5a6e0b |
@@ -50,7 +50,7 @@ services:
|
|||||||
container_name: p2wdb
|
container_name: p2wdb
|
||||||
environment:
|
environment:
|
||||||
CONSUMER_URL: 'https://free-bch.fullstack.cash'
|
CONSUMER_URL: 'https://free-bch.fullstack.cash'
|
||||||
#ENABLE_BCH_PAYMENT: 1
|
ENABLE_BCH_PAYMENT: 1
|
||||||
DEBUG_LEVEL: 1
|
DEBUG_LEVEL: 1
|
||||||
logging:
|
logging:
|
||||||
driver: 'json-file'
|
driver: 'json-file'
|
||||||
@@ -68,7 +68,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ../data/ipfsdata/p2wdb:/home/safeuser/ipfs-p2wdb-service/.ipfsdata/p2wdb
|
- ../data/ipfsdata/p2wdb:/home/safeuser/ipfs-p2wdb-service/.ipfsdata/p2wdb
|
||||||
- ./p2wdb/start-production.sh:/home/safeuser/ipfs-p2wdb-service/start-production.sh
|
- ./p2wdb/start-production.sh:/home/safeuser/ipfs-p2wdb-service/start-production.sh
|
||||||
#- ../scripts/wallet.json:/home/safeuser/ipfs-p2wdb-service/wallet.json
|
- ../scripts/wallet.json:/home/safeuser/ipfs-p2wdb-service/wallet.json
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
bch-dex:
|
bch-dex:
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ class OrderLib {
|
|||||||
const orderEntity = this.orderEntity.inputValidate(entryObj)
|
const orderEntity = this.orderEntity.inputValidate(entryObj)
|
||||||
console.log('orderEntity: ', orderEntity)
|
console.log('orderEntity: ', orderEntity)
|
||||||
|
|
||||||
|
// Optimize the wallet to speed up working with it.
|
||||||
|
await this.retryQueue.addToQueue(this.adapters.wallet.bchWallet.optimize, {})
|
||||||
|
|
||||||
// Ensure sufficient tokens exist to create the order.
|
// Ensure sufficient tokens exist to create the order.
|
||||||
// await this.ensureFunds(orderEntity)
|
// await this.ensureFunds(orderEntity)
|
||||||
await this.retryQueue.addToQueue(this.ensureFunds, orderEntity)
|
await this.retryQueue.addToQueue(this.ensureFunds, orderEntity)
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ class MockBchWallet {
|
|||||||
this.getTokenData = async () => {}
|
this.getTokenData = async () => {}
|
||||||
this.initialize = async () => {}
|
this.initialize = async () => {}
|
||||||
this.utxoIsValid = async () => {}
|
this.utxoIsValid = async () => {}
|
||||||
|
this.optimize = async () => {}
|
||||||
|
|
||||||
// Environment variable is used by wallet-balance.unit.js to force an error.
|
// Environment variable is used by wallet-balance.unit.js to force an error.
|
||||||
if (process.env.NO_UTXO) {
|
if (process.env.NO_UTXO) {
|
||||||
|
|||||||
Reference in New Issue
Block a user