Comments (1)
Hi Vibrant Casper's Dev community ! 💯
i hope i'm not disrispect or trolling by commenting this particular issue but it rememeber this particular point being discussed (and published at IOHK). Here is basically how they handle it there :
_In the Cardano blockchain, the BlockValidator is designed to handle such scenarios to prevent the issue you described. Here's a simplified explanation of how it might be handled:
-
Concurrency Control: The BlockValidator is likely designed to handle concurrent requests. This means that even if two requests for validating the same block arrive in quick succession, they won't interfere with each other's processing.
-
State Management: The validation_states you mentioned is likely a data structure used to keep track of the validation process for each block. When a new request comes in, the BlockValidator would first check this data structure to see if the block is already being processed. If it is, the new request would be queued or discarded, depending on the specific implementation.
-
Unique Identifiers: Each block validation request might have a unique identifier associated with it. This could be the block hash or some other unique value. This identifier would be used to check if a request is already being processed, as mentioned in the previous point.
-
Responder and Holder Management: The responder and holder for each request would be managed in such a way that they aren't dropped until the validation process is complete. This could be done by keeping references to them in the validation_states data structure, for example.
In the specific case of Cardano, the Ouroboros protocol, which is the consensus mechanism used by Cardano, is designed to handle such scenarios. However, the exact details of how this is done would depend on the specific implementation of the BlockValidator and the rest of the Cardano node software. For the most accurate information, it would be best to refer to the official Cardano documentation or the source code of the Cardano node software._
May it help/inspires @SaiProServ . If not i send all my luck and best wishes to hard working dev and Casper's community.
Best,
Simon
from casper-node.
Related Issues (20)
- Rust toolchain failure observed with CEP18 contract.
- Fix Juliet test HOT 1
- Add a flag for enabling speculative exec into the binary port and disable it by default
- Add a dictionary item request to the binary port
- Move ReactorState from casper-types to the node and replace it with a String in NodeStatus
- Rename Transform types
- Review max_request_size_bytes and max_response_size_bytes binary port config
- Send custom error message payloads in the binary port
- Investigate potentially flaky Highway Zug rewards tests
- Joiner issue for 1.6 HOT 1
- Wrong documentation for enable_contract_version
- Distributing rewards for signatures sometimes fail if the validator dropped from the validator list
- Create a reactor test that checks that new 2.0 rewards are correctly distributed to inactive validators
- Move values that can affect size of the BinaryPort request to chainspec
- Create a tool for direct communication with binary port
- Adjust cost values for contract messages FFI parameters
- Write reactor tests for checking transaction payments HOT 1
- Unintended speed dependence in should_have_diverse_proposable_blocks_with_stocked_buffer test
- Add a dedicated balance request to the binary port and expose hold information in a new RPC endpoint
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 casper-node.