docs: public void setBlockAppearance(StoredBlock block, boolean bestChain, int relativityOffset) {
          long blockTime = block.getHeader().getTimeSeconds() * 1000;
          if (bestChain && (updatedAt == null || updatedAt.getTime() == 0 || updatedAt.getTime() > blockTime)) {
              updatedAt = new Date(blockTime);
          }
  
          addBlockAppearance(block.getHeader().getHash(), relativityOffset);
  
          if (bestChain) {
              TransactionConfidence transactionConfidence = getConfidence();
              // This sets type to BUILDING and depth to one.
              transactionConfidence.setAppearedAtChainHeight(block.getHeight());
          }
      }