XLNT / gnarly

🤙 A blockchain ETL tool to make your life better. Now that’s fuckin’ gnarly.
https://xlnt.co
Apache License 2.0
119 stars 9 forks source link

replace block reconciliation polling with a web3 filter #30

Open shrugs opened 6 years ago

shrugs commented 6 years ago

replace the function here https://github.com/XLNT/gnarly/blob/master/packages/gnarly-core/src/Blockstream.ts#L165 with a web3 filter that gets pushed information about new blocks

shrugs commented 6 years ago

web3-1.0.0 subscriptions require ws handler, and right now we're http only. adding web3 itself gets annoying because we have to pass that configuration down and I'm not sure how to do traceTransaction over ws provider.