Skip to content

Instantly share code, notes, and snippets.

View python_conversion.md

Python Number Conversion Chart

From To Expression
@spikeekips
spikeekips / README.md
Last active Feb 13, 2018
Checking the stability fo two quorums in SCP(FBA)
View README.md

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
View bos_ico_distribution.py
import json
import signal
from operator import itemgetter
from decimal import Decimal
from boscoin_base.address import Address
def handle_timeout(signum, frame):
raise
if __name__ == "__main__":