Compare commits

..
4 Commits
Author SHA1 Message Date
Chris Troutner 6585ceacc7 Merge pull request #33 from Permissionless-Software-Foundation/ct-unstable
fix(offer): Changing stale threshold from 7 days to 8 weeks
2022-07-06 12:24:01 -07:00
Chris Troutner 942dbedd44 fix(offer): Changing stale threshold from 7 days to 8 weeks 2022-07-06 12:22:15 -07:00
Chris Troutner 825ede0760 Minor text chagne 2022-07-02 13:41:25 -07:00
Chris Troutner 5e4540bd84 Updating docker image 2022-06-29 17:37:37 -07:00
3 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -70,10 +70,10 @@ services:
restart: always
bch-dex:
build:
context: ./bch-dex/
dockerfile: Dockerfile
#image: christroutner/bch-dex:v1.7.1
#build:
# context: ./bch-dex/
# dockerfile: Dockerfile
image: christroutner/bch-dex:v1.8.0
container_name: bch-dex
environment:
CONSUMER_URL: 'https://free-bch.fullstack.cash'
+1 -1
View File
@@ -41,7 +41,7 @@ async function sweepFunds () {
const cashAddress = bchjs.HDNode.toCashAddress(childNode)
const wifToSweep = bchjs.HDNode.toWIF(childNode)
console.log(`\nSweeping ${cashAddress}`)
console.log(`\nSweeping ${cashAddress} with private key ${wifToSweep}`)
try {
// Sweep tokens from address
+4 -4
View File
@@ -379,10 +379,10 @@ class OfferUseCases {
// If the Offer is older than 7 days, delete it.
const nowMs = now.getTime()
const sevenDays = 1000 * 60 * 60 * 24 * 7
const sevenDaysAgo = nowMs - sevenDays
if (thisOffer.timestamp < sevenDaysAgo) {
console.log('Offer older than 7 days. Deleting.')
const eightWeeks = 1000 * 60 * 60 * 24 * 7 * 8
const eightWeeksAgo = nowMs - eightWeeks
if (thisOffer.timestamp < eightWeeksAgo) {
console.log('Offer older than 8 weeks. Deleting.')
await thisOffer.remove()
}
}