1

I am looking into get_status() function is status_cache.rs. I am wondering how and where roots and ancestors are updated for this check. I suppose there must be some place in the replay stage where they are updated. Please help

New contributor
huzaifa rehman is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

1 Answer 1

1

You can look at how status_cache is used in bank.rs. This cache is shared between all of the banks in the system, which are used by replay.

Here's a line that updates roots: https://github.com/solana-labs/solana/blob/7d286961ba80bd727c62195a32f9cedce0c37882/runtime/src/bank.rs#L3188

2

Your Answer

huzaifa rehman is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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