Files
blockchain-emission-analysis/blockchain.py
T
2024-05-04 16:26:59 -04:00

8 lines
331 B
Python

import numpy as np
class Blockchain:
'''Contains time and reward information for a blockchain'''
def __init__(self, number_of_blocks=7e6, block_skip=10):
self.number_of_blocks = int(number_of_blocks) # Number of blocks to calculate
self.block_skip = int(block_skip) # Number of blocks to skip to save time