snarkOS
snarkOS copied to clipboard
Cache current_block_locators and update it when add_next_block
Motivation
This pr will decrease times of calling block locators when the node is stable。However get_block_locators will be callled when a add_next_block is called,and slow down the sync speed。 Maybe exist a better way to do this。