@Override
  public boolean equals(final Object o) {
    if (o == null || getClass() != o.getClass()) return false;
    WorldStateQueryParams that = (WorldStateQueryParams) o;
    return shouldWorldStateUpdateHead == that.shouldWorldStateUpdateHead
        && Objects.equals(blockHeader, that.blockHeader)
        && Objects.equals(blockHash, that.blockHash)
        && Objects.equals(stateRoot, that.stateRoot);
  }
Creates an instance with a state root, block hash, and does not update the node head.

@param stateRoot the state root
@param blockHash the block hash
@return an instance of WorldStateQueryParams
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/pathbased/common/provider/WorldStateQueryParams.java