Comments (6)
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.
Thanks, @Czino will debug and see what could be wrong.
from bdk-rn.
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.
@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.
@BitcoinZavior yes, I am already using concurrency
to speed things up a little
from bdk-rn.
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)
- Allow Extraction of PSBT struct
- [iOS] Crashes on init for some devices HOT 7
- Allow adding utxo from multiple wallets to txbuilder
- `wallet.sync()` is blocking execution on android HOT 2
- Error: failed to lookup address information: nodename nor servname provided, or not known HOT 1
- Syncing blocks main thread on iOS now HOT 1
- ElectrumConfig and EsploraConfig method signature HOT 1
- BlockChainConfig number types causing runtime errors HOT 1
- java.lang.String cannot be cast to java.lang.Double HOT 5
- Exception in native call from JS HOT 1
- When will this lib upgrade to the latest version of BDK 0.29.0 ? HOT 2
- Wrap native methods in a thread on the native side
- TypeError: Cannot read property 'generateMnemonic' of undefined HOT 2
- Typo's in the examples in README.md HOT 1
- Upgrade to v0.30.0 of bdk ffi
- [Android] - initWallet - descriptor not always defined HOT 3
- [Android] Descriptor checksum mismatch
- Expo with BDK-RN HOT 1
- DatabaseConfig().sqlite() not working on iOS 15 and below
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bdk-rn.