public void addAccountToHealingList(final Bytes accountsHealingList) {
    final BigInteger index =
        healContext
            .get(SNAP_ACCOUNT_HEALING_LIST_INDEX)
            .map(bytes -> new BigInteger(bytes.toArrayUnsafe()).add(BigInteger.ONE))
            .orElse(BigInteger.ZERO);
    healContext.putAll(
        keyValueStorageTransaction -> {
          keyValueStorageTransaction.put(SNAP_ACCOUNT_HEALING_LIST_INDEX, index.toByteArray());
          keyValueStorageTransaction.put(index.toByteArray(), accountsHealingList.toArrayUnsafe());
        });
  }
Persists the current accounts to heal in the database.

@param accountsHealingList The current list of accounts to heal.
ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/sync/snapsync/context/SnapSyncStatePersistenceManager.java