Coder Social home page Coder Social logo

pybft's People

Contributors

gdanezis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pybft's Issues

Re-send PREPREPARE on REQUEST

pybft/pybft/replica.py

Lines 131 to 141 in 131ecea

# If we are the primary, and have send a
# preprepare message for this request, send it
# again here.
for xmsg in self.in_i:
if xmsg[0] == self._PREPREPARE and \
xmsg[1] == self.view_i and \
xmsg[3] == msg:
# print("!!! FOUND PREPREPARE")
self.out_i.add(xmsg)

In order to make progress (liveness) I think it is necessary for primaries to re-send a preprepare, send before, on a new request. This is however not in the original specification? Is this safe (I think it is, since it is only repeating a message sent before)? Is it necessary, or is the liveness issue occurring due to a bug elsewhere?

How TO RUN?

hello,I failed to run“test_replica.py”,This is an error because “No module named pybft.replica
” I should how to run? Can you write a specific running guide?Thanks very much

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.