Comments (8)
@georgeee
Local data is not to be stored in ACID
from cardano-sl.
@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.
@Gromak
And now 12h estimation is reasonable :)
from cardano-sl.
@neongreen
Looks okay to me. Where LocalData ssc
(which is going to be an IORef
, right?) would be stored?
from cardano-sl.
@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.
@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.
@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.
@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)
- Installation fails HOT 3
- Legacy explorer frontend dependency on NodeJS 6.x HOT 1
- wallet api - account created without spending password
- wallet api - account created successfully with non existing wallet name
- `Accounts` endpoint returning incorrect balance for subsequent queries
- Lack of address history when calling API via cardano-sl fullnode HOT 2
- Need support regarding Cardano API and SDK HOT 2
- How to query original transactions not associated with wallet
- nix-build -A cardano-sl-node-static --out-link master error HOT 1
- Build and Run Wallet using docker without tls
- Questions about query blocks HOT 3
- Segmentation fault HOT 86
- Several new "panicked at" errors while bootstrap HOT 1
- how to get testnet coin
- BlockNetLogicException: DialogUnexpected "stake distribution for epoch #179 is unknown" HOT 1
- Failed to verify blocks: stake distribution for epoch #179 is unknown HOT 28
- Not synchronized after a certain block HOT 5
- new node is not synchronized HOT 2
- Does the mainnet have an upgrade plan now? HOT 1
- cardano-sl don`t sync .How do I move my wallet from Cardano-SL to Cardano-Wallet HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cardano-sl.