-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use REST interface for calling get_raw_transaction #1636
Conversation
b8a763a
to
592c18d
Compare
The library Benchmarking RPC vs REST, it is about ~10-20% faster using REST. However, being able to use a new connection per request for either method is definitely what we want to do. I think the performance is so much better we might want to support reusing connections if not using Mac? I know a lot of users are running this in cloud instances on linux, so might be worth it? |
Ok update on this, I switched out Second, it is But there's more. If you configure bitcoind to have a higher |
This worked for me to index in about 2 hours last night, thanks for the effort! Did have to restart it once, but not sure what caused this issue:
|
@tzarebczan awesome! Did you also have #1357 reverted? Otherwise it doesn't use this feature. What about #1516, did you try with that? If not, that would make sense why you have the JSON-RPC error, because it would still be fetching blocks via JSON-RPC. |
I used speedup improvements branch from your repo |
Closing in favor of https://github.com/casey/ord/pull/1759 |
Closes https://github.com/casey/ord/issues/1558.
Use the REST endpoint for fetching raw transactions instead of RPC endpoint. Only really useful when implementing https://github.com/casey/ord/issues/1364 by reverting https://github.com/casey/ord/pull/1357.
When combined with https://github.com/casey/ord/pull/1516, I synced to 775812 (without
--index-sats
) in 1 hour 6 minutes. And no more pesky JSON-RPC errors.The progress bar is kind of silly now though. It should really show progress from first inscription block to current height if no
--index-sats
.This needs to have bitcoind run with
-rest
though, otherwise painful slowness and rpc errors.