Skip to content
Snippets Groups Projects
Commit 13e7adc3 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

merkle: Make MerkleNode.collect return a set of nodes instead of a dict

Previously the MerkleNode.collect method was returning a dict whose keys
are node types and values dict of {<node_hash>: <node_data>}.

In order to give more flexibility to client code for the processing of
collected nodes, prefer to simply return a set of MerkleNode.

As a consequence, MerkleNode objects need to be hashable by Python so
the __hash__ method has also been implemented.

Closes T4633
parent 9b8beef1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment