runonbitcoin / run-db

An indexer that crawls the blockchain and calculates RUN states
MIT License
24 stars 22 forks source link

Addapt bitcoin node connection for mainnet #13

Closed calvogenerico closed 3 years ago

calvogenerico commented 3 years ago

With this changes the bitcoin node connection works on mainnet.

This is probably not a long term solution, but it for sure works fast enough for current block sizes. It's even able to handle big blocks (~600mb) in really reasonable times.

codecov[bot] commented 3 years ago

Codecov Report

Merging #13 (328d208) into master (60bb160) will increase coverage by 0.23%. The diff coverage is 96.96%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
+ Coverage   84.45%   84.69%   +0.23%     
==========================================
  Files           9        9              
  Lines         907      921      +14     
==========================================
+ Hits          766      780      +14     
  Misses        141      141              
Impacted Files Coverage Δ
src/indexer.js 90.39% <90.90%> (ø)
src/bitcoin-node-connection.js 95.34% <100.00%> (+2.24%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 60bb160...328d208. Read the comment docs.

brentongunning commented 3 years ago

LGTM