Skip to content

Instantly share code, notes, and snippets.

@gaxiiiiiiiiiiii
Created November 1, 2018 06:58
Show Gist options
  • Save gaxiiiiiiiiiiii/7ba0863a0a1ed797cedcfb1779959831 to your computer and use it in GitHub Desktop.
Save gaxiiiiiiiiiiii/7ba0863a0a1ed797cedcfb1779959831 to your computer and use it in GitHub Desktop.
def build_tree(self):
while len(self.layer) > 1:
self.build_layer()
self.root = self.layer[0].hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment