atomicagent
atomicagent copied to clipboard
Need help, running the agent locally and got stuck on Locking ETH while swap BTC to ETH
hello, I was trying to run this app on my local environtment.
I have successfully running the wallet, api & worker locally.
I have changed my wallet build.config.js
testnet agent endpoint into http://localhost:3030
.
After that, I tried to swap BTC to ETH (of course on testnet), but got stuck on Locking ETH
process after the bitcoin transaction is confirmed.
And then I tried using https://liquality.io/swap-testnet/agent
as the testnet agent endpoint on my wallet, I got no error with that.
So the problem is come from my local api/worker, but what caused it ? since I got no error both on api/worker console. I'm running the latest dev branch. here my config.toml file, please point me if I got it wrong
[database]
uri = "mongodb://localhost/liqualitytest"
debug = true
[application]
apiPort = 3030
swapExpirationDurationInSeconds = 3600
nodeSwapExpirationDurationInSeconds = 1800
[auth]
cookieSecret = '58da74ef560e5578cb46219b7818d7c2'
cookieMaxAgeMs = 86400000
simplePassword = '25ec02267950f537347b4a7c02b00ced'
[threshold]
manualAboveFromAmountUsd = 5000
[worker]
maxJobRetry = 5
jobRetryDelay = "5 seconds"
backendJobRetryDelay = "5 seconds"
minConcurrentSwaps = 3
defaultLockLifetimeInMs = 120000 # 2 min
killswitch = 'pm2 stop "Worker"'
[assets]
[assets.BTC]
network = "bitcoin_testnet"
addressType = "bech32"
swapMode = "p2wsh"
feeNumberOfBlocks = 2
blockTime = "5 seconds"
defaultFee = "average"
[assets.BTC.wallet]
type = "js"
mnemonic = "piece effort bind that embrace enrich remind powder sudden patient legend group"
[assets.BTC.api]
url = "https://liquality.io/testnet/electrs/"
[assets.BTC.batchApi]
url = "https://liquality.io/electrs-testnet-batch/"
[assets.BTC.rpc]
url = "http://localhost:8332/"
user = "bitcoinrpc"
password = "password"
[assets.ETH]
network="rinkeby"
blockTime = "5 seconds"
defaultFee = "average"
[assets.ETH.wallet]
type = "js"
mnemonic = "piece effort bind that embrace enrich remind powder sudden patient legend group"
[assets.ETH.scraper]
url = "https://liquality.io/eth-rinkeby-api"
[assets.ETH.rpc]
url = "https://rinkeby.infura.io/v3/myInfuraId"
[assets.DAI]
network="rinkeby"
type = "ERC20"
blockTime = "5 seconds"
contractAddress = "0x094cdd8e19b97505869c87a995a972c4df7f69a8"
defaultFee = "average"
[assets.DAI.wallet]
type = "js"
mnemonic = "piece effort bind that embrace enrich remind powder sudden patient legend group"
[assets.DAI.scraper]
url = "https://liquality.io/eth-rinkeby-api"
[assets.DAI.rpc]
url = "https://rinkeby.infura.io/v3/myInfuraId"