Comments (9)
@djrtwo already done 😄
from cbc-casper.
Whoops! Sorry @djrtwo somehow I only saw this now!
Pyethereum implements a Casper validator which receives blocks, looks for events in those blocks, and then sends transactions to other validators. Upon receiving transactions from other validators, a validator will create a block with those transactions included. You can take a look at the validator code here: https://github.com/ethereum/pyethereum/blob/develop/ethereum/hybrid_casper/validator.py
Nodes simply add themselves to a network, and then broadcast new blocks & txs
This code is based on the full implementation in Pyethapp which you can check out here: https://github.com/ethereum/pyethapp/blob/develop/pyethapp/eth_service.py#L377-L398
Let me know if you have any questions!
from cbc-casper.
@karlfloersch while I have your attention.. can you add @jonchoi as a collaborator on the repo?
please and thankyou
from cbc-casper.
@karlfloersch Can you point us to this network data y'all used? Vlad said you'd know where to look
from cbc-casper.
Pinging @karlfloersch. Any insight into this?
from cbc-casper.
You the best. Will dig in tomorrow and holler if I need anything.
from cbc-casper.
oh hello! 👋🏼
from cbc-casper.
@karlfloersch Just to be clear.. in the referenced code, when a validator broadcasts a new block/transaction, there is 100% success in propagation? Looks like Network.broadcast
ensures that everyone in the network receives, right?
Another way to put it, the casper validator code doesn't simulate cases when messages are propagated in more complex asynchronous ways.
from cbc-casper.
Networking was refactored in PR: #151
Unless we decide to make this simulation very realistic, this is probably enough for our purposes. Closing.
from cbc-casper.
Related Issues (20)
- Rename/move testing lang HOT 10
- Add descriptive comments to casper.py HOT 2
- View becomes positive ontology HOT 1
- Validator Strategies HOT 3
- Network.send to handle sender other than message.sender HOT 1
- Reconsider existing msg_gens used by SimulationRunner HOT 1
- Network that can handle peer connectivity
- Add last_finalized_estimate to protocols that need it HOT 1
- Oracle Comparisons HOT 1
- Add ability to specify initial bets HOT 2
- Add test language to protocols where it is missing HOT 1
- Add different estimate rules for protocols w/ non-deterministic estimates HOT 1
- Add safety detection to protocols where it is missing HOT 1
- Restructure Codebase HOT 16
- CliqueOracle optimisation? HOT 1
- Refactor network delay functions to be more dynamic HOT 1
- Add SkipBlockchain protocol to support skip blocks HOT 1
- Silly typo in wiki HOT 2
- Implement CBC-Casper HOT 1
- some thoughts on "CBC Casper the Friendly Ghost" HOT 1
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 cbc-casper.