You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of chain exchange, once we receive a chain the key for every subchain of it is calculated to speed up discovery, implemented here. The current implementation uses the naive/simple approach by calling merkle.Tree for every sub chain. This effectively re-hashes the same information over and over for smaller sub-chains.
The digest calculation can be made much cheaper if the merkle implementation exposes internal state such that the intermediate state from calculating the longest sub-chain can be used to calculate the smaller sub-chain digests.
The text was updated successfully, but these errors were encountered:
As part of chain exchange, once we receive a chain the key for every subchain of it is calculated to speed up discovery, implemented here. The current implementation uses the naive/simple approach by calling
merkle.Tree
for every sub chain. This effectively re-hashes the same information over and over for smaller sub-chains.The digest calculation can be made much cheaper if the
merkle
implementation exposes internal state such that the intermediate state from calculating the longest sub-chain can be used to calculate the smaller sub-chain digests.The text was updated successfully, but these errors were encountered: