Git Product home page Git Product logo

Comments (9)

karlfloersch avatar karlfloersch commented on July 18, 2024 2

@djrtwo already done 😄

from cbc-casper.

karlfloersch avatar karlfloersch commented on July 18, 2024 1

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.

djrtwo avatar djrtwo commented on July 18, 2024 1

@karlfloersch while I have your attention.. can you add @jonchoi as a collaborator on the repo?

please and thankyou

from cbc-casper.

djrtwo avatar djrtwo commented on July 18, 2024

@karlfloersch Can you point us to this network data y'all used? Vlad said you'd know where to look

from cbc-casper.

djrtwo avatar djrtwo commented on July 18, 2024

Pinging @karlfloersch. Any insight into this?

from cbc-casper.

djrtwo avatar djrtwo commented on July 18, 2024

You the best. Will dig in tomorrow and holler if I need anything.

from cbc-casper.

jonchoi avatar jonchoi commented on July 18, 2024

oh hello! 👋🏼

from cbc-casper.

djrtwo avatar djrtwo commented on July 18, 2024

@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.

naterush avatar naterush commented on July 18, 2024

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)

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.