Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Fail to update market data for BTC on testnet #361

Description

@think-in-universe

Description

Received the below error when running atomic agent locally, so cannot update market data for BTC.

o [NodeError]
    at r._handleNodeError (/.../liquality/atomicagent/node_modules/@liquality/node-provider/dist/index.js:1:1508)
    at /.../liquality/atomicagent/node_modules/@liquality/node-provider/dist/index.js:1:1882
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  error: 'Invalid "addresses" field'
}

The error is thrown from here: https://github.com/liquality/electrs-batch-server/blob/a01156688134962ca82380c8e62af6189a16323a/index.js#L45

This is probably because the addresses are [] in this line, when updating market data for BTC:

const addresses = await client.wallet.getUsedAddresses()

The BTC configuration.

  [assets.BTC]
  blockTime = "1 minute"
  network = "bitcoin_testnet"
  addressType = "bech32"
  swapMode = "p2wsh"
  feeNumberOfBlocks = 2
  defaultFee = "average"
    [assets.BTC.api]
    url = "https://liquality.io/testnet/electrs"
    [assets.BTC.batchApi]
    url = "https://liquality.io/electrs-testnet-batch/"
    [assets.BTC.wallet]
    type = "js"
    mnemonic = "<seed phrase>"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions