We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b701f66 + ce0007d commit 5ed0efcCopy full SHA for 5ed0efc
blockchain.py
@@ -9,7 +9,6 @@
9
from block import Block
10
from transaction import Transaction
11
from wallet import Wallet
12
-from node import Node
13
14
"""
15
Lq je reçois une transaction je dois la validera avant de l'enregister dans mon block.
@@ -45,15 +44,6 @@ def _genesis_block(self):
45
44
# genesis_hash = Block.hash(b1)
46
# print('genesis_hash = ', genesis_hash)
47
48
- def register_node(self, node):
49
- """
50
- Add a new node to the list of nodes.
51
52
- if not isinstance(node, Node):
53
- raise ValueError('node parameter should be a Node instance.')
54
-
55
- self.nodes.add(node)
56
57
@property
58
def last_block(self):
59
return self.chain[-1]
0 commit comments