I noticed that after a IRI restart the tip-count starts from 0 again. But i was under the impression that those tips have already been persisted locally, so how come that after a restart all those tips need to be re-requested again from its neighbors?

up vote 3 down vote accepted

The tip count is the number of tips currently "in memory" (i.e not in permanent storage/database). Therefore it's 0 when IRI restart.

A new entry is added to the set of tips "in memory" when a new transaction is received and there is no approvers for this transaction in the local database.

There is no process/code to scan the database to find tips at startup. Note that when IRI restart it is probably not fully sync and the transactions that were tips before reboot are probably not tips anymore.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.