Skip to content

Instantly share code, notes, and snippets.

import hashlib
import json
import math
import random
from collections import defaultdict
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional, Tuple
# Percentage of transfers that should be reused when creating a new block with
# sibilings.