Giter VIP home page Giter VIP logo

Comments (8)

jagajaga avatar jagajaga commented on May 18, 2024
@georgeee

Local data is not to be stored in ACID

from cardano-sl.

jagajaga avatar jagajaga commented on May 18, 2024
@Gromak

Yes, we must move local data into memory state. It doesn't make much sense to do refactoring which moves local data from version as a separate task. It will be more efficient to move local data into memory state at once.

That's why I have updated this issue.

from cardano-sl.

jagajaga avatar jagajaga commented on May 18, 2024
@Gromak

And now 12h estimation is reasonable :)

from cardano-sl.

jagajaga avatar jagajaga commented on May 18, 2024
@neongreen

Looks okay to me. Where LocalData ssc (which is going to be an IORef, right?) would be stored?

from cardano-sl.

jagajaga avatar jagajaga commented on May 18, 2024
@Gromak

@neongreen good question. It should be stored on very high level, higher than Worker or Server, because it's needed for both Worker and Server.
I think we can do it in the same way as we deal with NodeState (MonadDB). I will call it MonadSscLocalData, but it's not the best name. Then sscProcessMessage and sscGetLocalPayload will require MonadSscLocalData constraint (instead of taking LocalData as argument) and we can implement MonadSscLocalData in the same place where we implement MonadDB.
Does it make sense?

from cardano-sl.

jagajaga avatar jagajaga commented on May 18, 2024
@Gromak

Btw, we also need to add something like processBlock to SscLocalDataClass, because we need to remove local data which appears in blocks.

from cardano-sl.

jagajaga avatar jagajaga commented on May 18, 2024
@Gromak

Regarding atomicity: I don't see any fatal problems. We must be careful though, because, for example, when we pass global payload to sscProcessMessage it may happen that global payload changes. But actually we just need to check local payload before adding it to block, that's all.

This part is not implemented, I have created issue about it: CSL-155.

from cardano-sl.

jagajaga avatar jagajaga commented on May 18, 2024
@Gromak

In general we have finished this issue, but there are some improvements to be done: CSL-154, CSL-155 and CSL-153.

from cardano-sl.

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.