Add docstring for the update table function
This commit is contained in:
parent
084f512d34
commit
acd9b157b9
|
@ -697,6 +697,10 @@ class Squirrel(Hazelnut):
|
|||
self.update_hazelnut_table(hazelnut)
|
||||
|
||||
def update_hazelnut_table(self, hazelnut: Hazelnut) -> None:
|
||||
"""
|
||||
We insert the hazelnut into our table of clients.
|
||||
If there is a collision with the address / the ID, then we merge clients into a unique one.
|
||||
"""
|
||||
for addr in hazelnut.addresses:
|
||||
if addr in self.hazelnuts:
|
||||
# Merge with the previous hazel
|
||||
|
|
Loading…
Reference in New Issue