public PathBasedCachedWorldStorageManager getCachedWorldStorageManager() {
    return cachedWorldStorageManager;
  }
Gets the full world state from the cache based on the provided block header.

<p>This method attempts to retrieve the world state from the cache using the block header. If
the block header is too old (i.e., the number of blocks between the chain head and the provided
block header exceeds the maximum layers to load), a warning is logged and an empty Optional is
returned.

<p>The method follows these steps: 1. Check if the world state for the given block header is
available in the cache. 2. If not, attempt to get the nearest world state from the cache. 3. If
still not found, attempt to get the head world state. 4. If a world state is found, roll it to
the block hash of the provided block header. 5. Freeze the world state and return it.

@param blockHeader the block header
@return the full world state, if available
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/pathbased/common/provider/PathBasedWorldStateProvider.java