Skip to content

Instantly share code, notes, and snippets.

@niels1968
niels1968 / blockchain.py
Created March 31, 2021 18:16 — forked from dvf/blockchain.py
Step 10: Registering Nodes
...
from urllib.parse import urlparse
...
class Blockchain(object):
def __init__(self):
...
self.nodes = set()
...