Code Monkey home page Code Monkey logo

Comments (3)

6coind avatar 6coind commented on July 17, 2024

i'd be interested in realtime parsing of new blocks and persistent sqlite database. Maybe i'll try work on it and submit a PR

from blockparser.

znort987 avatar znort987 commented on July 17, 2024

The problem with doing this is longest chain validation. At start time, blockparser computes the longest chain, which is easy because the code assumes a static blockchain.
For a "real time" parser, it would have to deal with new blocks on the fly, and some of these may eventually become invalid (if they're not part of the longest chain).
When this happens, you'd have to revert all internal data structures back to the time of the fork ...
you'd also have to revert all transactions commited to the sqlite db. This is not easy at all.

from blockparser.

qwerty55 avatar qwerty55 commented on July 17, 2024

What you want to do is called complex event processing (CEP). Take a look at Esper. You can do that with Esper and a bit of Java.

BTW, one thing I'd like to see in this blockchain parser is a bloom filter option for check if a public address has been seen.

from blockparser.

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.