mirror of
https://github.com/codex-storage/das-research.git
synced 2025-02-22 07:48:12 +00:00
Starting code documentation
This commit is contained in:
parent
5c55fd7854
commit
cf780b3ca3
@ -5,7 +5,7 @@ from bitarray import bitarray
|
|||||||
from bitarray.util import zeros
|
from bitarray.util import zeros
|
||||||
|
|
||||||
class Block:
|
class Block:
|
||||||
|
"""This class represents a block in the Ethereum blockchain"""
|
||||||
|
|
||||||
def __init__(self, blockSize):
|
def __init__(self, blockSize):
|
||||||
self.blockSize = blockSize
|
self.blockSize = blockSize
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
class CustomFormatter(logging.Formatter):
|
class CustomFormatter():
|
||||||
|
"""This class defines the terminal output formatting."""
|
||||||
|
|
||||||
blue = "\x1b[34;20m"
|
blue = "\x1b[34;20m"
|
||||||
grey = "\x1b[38;20m"
|
grey = "\x1b[38;20m"
|
||||||
|
@ -6,6 +6,13 @@
|
|||||||
Welcome to DAS simulator's documentation!
|
Welcome to DAS simulator's documentation!
|
||||||
=========================================
|
=========================================
|
||||||
|
|
||||||
|
Indices and tables
|
||||||
|
==================
|
||||||
|
|
||||||
|
* :ref:`genindex`
|
||||||
|
* :ref:`modindex`
|
||||||
|
* :ref:`search`
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
:caption: Contents:
|
:caption: Contents:
|
||||||
@ -34,9 +41,4 @@ Welcome to DAS simulator's documentation!
|
|||||||
.. automodule:: validator
|
.. automodule:: validator
|
||||||
:members:
|
:members:
|
||||||
|
|
||||||
Indices and tables
|
|
||||||
==================
|
|
||||||
|
|
||||||
* :ref:`genindex`
|
|
||||||
* :ref:`modindex`
|
|
||||||
* :ref:`search`
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user