Skip to content

Instantly share code, notes, and snippets.

spikeekips /
Last active Feb 13, 2018
Checking the stability fo two quorums in SCP(FBA)

Checking The Stability Of Two Quorums

This script will simply do these,

  • set up and compose the 2 quorums automatically with given numbers, and the commons(shared nodes between 2 quorums) is also considered.
  • by the possible number of faulty nodes, checking and calculating these factors,
    • safety
    • liveness
    • minimum threshold
import json
import signal
from operator import itemgetter
from decimal import Decimal
from boscoin_base.address import Address
def handle_timeout(signum, frame):
if __name__ == "__main__":

Python Number Conversion Chart

From To Expression