This commit is contained in:
Chris Troutner
2022-09-11 14:41:56 -07:00
parent 0896adffbb
commit 1c1169dd93
2 changed files with 8 additions and 4 deletions
+4 -4
View File
@@ -67,10 +67,10 @@ services:
restart: always restart: always
bch-dex: bch-dex:
#build: build:
# context: ./bch-dex/ context: ./bch-dex/
# dockerfile: Dockerfile dockerfile: Dockerfile
image: christroutner/bch-dex-rpi:v1.9.6 #image: christroutner/bch-dex-rpi:v1.9.8
container_name: bch-dex container_name: bch-dex
environment: environment:
CONSUMER_URL: 'https://free-bch.fullstack.cash' CONSUMER_URL: 'https://free-bch.fullstack.cash'
+4
View File
@@ -64,6 +64,8 @@ async function sweepNfts () {
if (thisToken.tokenType === 65) { if (thisToken.tokenType === 65) {
console.log(`NFT ${thisToken.ticker} (${thisToken.name}) found. Sweeping to ${rootAddr}`) console.log(`NFT ${thisToken.ticker} (${thisToken.name}) found. Sweeping to ${rootAddr}`)
await walletRoot.initialize()
// Send BCH to the child address, to pay for transaction fees. // Send BCH to the child address, to pay for transaction fees.
const receiver1 = [{ const receiver1 = [{
address: cashAddress, address: cashAddress,
@@ -76,6 +78,8 @@ async function sweepNfts () {
console.log('Waiting for indexers to update...') console.log('Waiting for indexers to update...')
await bchjs.Util.sleep(120000) await bchjs.Util.sleep(120000)
await walletChild.initialize()
// Send NFT to root address. // Send NFT to root address.
const receiver2 = [{ const receiver2 = [{
address: rootAddr, address: rootAddr,