Coder Social home page Coder Social logo

crypdex / blackbox Goto Github PK

View Code? Open in Web Editor NEW
39.0 39.0 4.0 50.07 MB

An ARM-first, pluggable framework for multi-chain deployments.

Home Page: https://crypdex.github.io/blackbox

Makefile 2.26% Shell 49.06% Go 30.54% CSS 1.65% JavaScript 5.70% Dockerfile 10.52% HTML 0.27%

blackbox's People

Contributors

dmichael avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

blackbox's Issues

Add GPG signature to release

The releases are currently managed by Goreleaser. It would be great to get them GPG signed for those that want to verify origin.

Add docker-compose bin to ARM deployments

Now that the system is reverting to docker-compose, we should likely include a way to update the docker-compose binary as well since it requires special compilation on ARM64

Common healthcheck hooks

Every service needs to expose a common healthcheck in some way. Not sure exactly how this should be done right now.

[Sparkswap] Persistent NOT_SYNCED after first LND sync

Description

After creating a wallet and letting both LND node sync, the NOT_SYNCED message persists on the healthcheck. Rebooting the system resolves the issue.

It is not clear if this affects Sparkswap stock install.

  • Sparkswap Broker v0.6.2-beta
  • BlackboxOS v0.1.30+

[Sparkswap] Error: 14 UNAVAILABLE: TCP Read failed

Description

When placing an order using the Sparkswap broker, user occasionally will get a TCP Read failed from the gRPC call to LND. This issue does not seem to arise from Sparkswap's stock install on x86.

Environment

  • Sparkswap Mini (ARM64)
  • BlackboxOS v0.1.30
  • Sparkswap Broker v0.6.2-beta
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    | info: Request received: [OrderService:createBlockOrder] {"timestamp":"2019-05-16T14:20:16.861Z"}
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    | info: Getting all block orders for market: BTC/LTC {"timestamp":"2019-05-16T14:20:16.869Z"}
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    | info: Retrieving best priced from ASK up to 10000 {"timestamp":"2019-05-16T14:20:17.233Z"}
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    | D0516 14:20:17.322003207      38 dns_resolver.cc:275]        Start resolving.
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    | error: Error while handling request: [OrderService:createBlockOrder] {"timestamp":"2019-05-16T14:20:17.328Z"}
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    | error: Error: 14 UNAVAILABLE: TCP Read failed
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    |     at Object.exports.createStatusError (/home/app/node_modules/lnd-engine/node_modules/grpc/src/common.js:91:15)
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    |     at Object.onReceiveStatus (/home/app/node_modules/lnd-engine/node_modules/grpc/src/client_interceptors.js:1204:28)
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    |     at InterceptingListener._callNext (/home/app/node_modules/lnd-engine/node_modules/grpc/src/client_interceptors.js:568:42)
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    |     at InterceptingListener.onReceiveStatus (/home/app/node_modules/lnd-engine/node_modules/grpc/src/client_interceptors.js:618:8)
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    |     at callback (/home/app/node_modules/lnd-engine/node_modules/grpc/src/client_interceptors.js:845:24) {"timestamp":"2019-05-16T14:20:17.334Z"}
blackbox_sparkswap.1.srgiwkz3iwf7@sparkswap    | info: Request completed: [OrderService:createBlockOrder] {"timestamp":"2019-05-16T14:20:17.342Z"}

Docker stack merges `command` key, does not override

Running docker-compose -f file1 -f file2 config advertises that the command keys are overridden (as per the docs). However, when calling docker stack -c file1 -c file2 deploy, the command keys are merged. Not sure how this is happening considering it is a string. It could be the the way the entrypoint is handling arguments. Needs investigation.

bitcoin.conf and lnd.conf not created on startup

Here is my blackbox.yml:

version: '3.7'

services:
  lnd_bitcoin:

here is blackboxd version:

root@sparkswap:~# blackboxd version
0.1.51

here is blackboxd info:

root@sparkswap:~# blackboxd info
❯ BLACKBOX config:
services:
  bitcoin:
    command: -rpcuser=xxxx -rpcpassword=xxxx -rpcallowip=0.0.0.0/0 -zmqpubrawblock=tcp://0.0.0.0:28333
      -zmqpubrawtx=tcp://0.0.0.0:28334 -printtoconsole -txindex
    container_name: bitcoind
    environment:
      BITCOIN_NETWORK: testnet
    image: crypdex/bitcoin:0.17
    ports:
    - published: 8332
      target: 8332
    - published: 8333
      target: 8333
    - published: 18332
      target: 18332
    - published: 18333
      target: 18333
    - published: 18443
      target: 18443
    - published: 18444
      target: 18444
    restart: on-failure
    volumes:
    - /mnt/data/friendfund/bitcoin:/home/bitcoin/.bitcoin:rw
  lnd_bitcoin:
    command: --rpclisten=0.0.0.0:10009
    container_name: lnd_bitcoin
    depends_on:
    - bitcoin
    environment:
      BACKEND: bitcoind
      BITCOIN_RPCPASS: xxxx
      BITCOIN_RPCUSER: xxxx
      CHAIN: bitcoin
      NETWORK: testnet
    image: crypdex/lnd:0.6
    restart: on-failure
    volumes:
    - /mnt/data/friendfund/lnd:/home/lnd/.lnd:rw
version: '3.7'

On start the bitcoin.conf and lnd.conf are not created. I expect they would be created and would have the .env variables I've added. As a work around, I just add these files manually for now.

Telemetry for Assets Managed by Blackbox

I committed 0.1 BTC to Sparkswap's exchange using blackbox. I was wondering if we could add some telemetry so I could opt into reporting that back to Crypdex.

BITCOIN_RPCPASS <> BITCOIN_RPCPASSWORD

I cut and paste the .env example in the docs then got this error:
ERROR: Missing mandatory value for "command" option in service "lnd_bitcoin": BITCOIN_RPCPASSWORD is required
It can be fixed in the docs. I would do this if I was a committer on this repo, doing the fork thing is a lot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.