Giter Club home page Giter Club logo

Comments (6)

Czino avatar Czino commented on August 10, 2024 1

So far debugging and finding that stopGap and timeout and mixed up for Esplora

in src/classes/Blockchain.ts:31
stopGap is the 5th argument
this.id = await this._bdk.initEsploraBlockchain(url, proxy, concurrency, timeout, stopGap);

android/src/main/java/io/ltbl/bdkrn/BdkRnModule.kt:232
expecting stopGap to be the 4th argument

@ReactMethod
    fun initEsploraBlockchain(
        url: String,
        proxy: String?,
        concurrency: String?,
        stopGap: String?,
        timeOut: String?,
        result: Promise
    )

ios/BdkRnModule.swift:287
expecting stopGap to be the 4th argument

@objc
    func initEsploraBlockchain(_
        url: String,
        proxy: String?,
        concurrency: String?,
        stopGap: String?,
        timeOut: String?,
        resolve: @escaping RCTPromiseResolveBlock,
        reject: @escaping RCTPromiseRejectBlock
    )

from bdk-rn.

BitcoinZavior avatar BitcoinZavior commented on August 10, 2024 1

Thanks, @Czino will debug and see what could be wrong.

from bdk-rn.

Czino avatar Czino commented on August 10, 2024

After fixing it with #46, I inspected the stopGap in android and now I receive the same value I passed.

However, bdk-rn is still scanning 200 addresses.

from bdk-rn.

BitcoinZavior avatar BitcoinZavior commented on August 10, 2024

@Czino you might also want to check the value for concurrency: String?
https://docs.rs/bdk/latest/bdk/blockchain/esplora/struct.EsploraBlockchainConfig.html

from bdk-rn.

Czino avatar Czino commented on August 10, 2024

@BitcoinZavior yes, I am already using concurrency to speed things up a little

from bdk-rn.

Czino avatar Czino commented on August 10, 2024

debugging this issue a little, even after forcing stopGap to be 1, still 200 addresses are being scanned

 let _blockchainConfig = BlockchainConfig.esplora(
    config: EsploraConfig(
        baseUrl: baseUrl,
        proxy: proxy.isEmpty ? nil : proxy,
        concurrency: UInt8(truncating: concurrency),
        stopGap: 1,
        timeout: UInt64(truncating: timeout)
    )
)

Looks to me like we need to escalate the issue to bdk-ffi

from bdk-rn.

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.