Giter Club home page Giter Club logo

Comments (6)

michael1011 avatar michael1011 commented on July 3, 2024

Have the transaction index enabled txindex=1

https://docs.boltz.exchange/en/latest/deployment/

The boltz backend explicitely requires the txindex to be enabled. It's not about propagation of the transaction but about the this.chainClient.getRawTransactionVerbose which calls the Bitcoin Core RPC and requires txindex

from boltz-backend.

yuyaogawa avatar yuyaogawa commented on July 3, 2024

What I meant is I have LND with neutrino and Bitcoind with txindex enabled on different servers. When boltz-backend calls the Bitcoin Core RPC this.chainClient.getRawTransactionVerbose, it returns the error because the transaction that is broadcasted from LND is not yet propagated to the Bitcoind.

from boltz-backend.

michael1011 avatar michael1011 commented on July 3, 2024

Ah I see. Interesting setup you got there. I guess we could work around that propagation issue.

But the real question is: why would you want to do that in the first place? 😅
Why run LND with neutrino if you could just run it alongside your Bitcoin Core?

from boltz-backend.

yuyaogawa avatar yuyaogawa commented on July 3, 2024

The instance I run LND has limited disk space. That's why I have to run another instance for Bitcoind. I added sleep function, but it does not solve the fundamental issue. Do you have any suggestions?

from boltz-backend.

michael1011 avatar michael1011 commented on July 3, 2024

Do you have any suggestions?

That code snippet you sent in the first message assumes that the transcation was broadcasted through the Bitcoin Core node Boltz is connected to.

To fix that we have two options:

  1. query the raw transaction that was sent not through Bitcoin Core but with the LND gRPC
  2. you connect your LND to the Bitcoin Core running on the other instance

The first option could even be implemented as a fallback. But I'd prefer the second one, because I wouldn't use Neutrino in producton. What do you think?

from boltz-backend.

armurbalda avatar armurbalda commented on July 3, 2024

Closing, since we don't want to optimize for Neutrino backend usage.

from boltz-backend.

Related Issues (20)

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.