HelixNetwork / pendulum

Pendulum is a distributed messaging protocol that enables globally available tamper proof timestamps :hourglass_flowing_sand:
https://dev.hlx.ai
Other
10 stars 6 forks source link

API select random tips and do not walk #230

Closed dnck closed 8 months ago

dnck commented 4 years ago

This is a port from the older helix-1.0 package into pendulum to stop the random walking. Tips are selected with the new tipselector.getTwoRandomTips() method.

dzhelezov commented 4 years ago

The issue of picking tips for approval turns out to be more subtle -- as picking up tips at random will cause the growing number of orphaned txs if at least one tip is orphaned for some reason (e.g. due to a double-spend)