private Bytes rlpEncode(final List<TransactionReceipt> receipts) {
      return RLP.encode(
          o ->
              o.writeList(
                  receipts,
                  (r, rlpOutput) -> {
                    var options =
                        receiptCompaction
                            ? TransactionReceiptEncodingConfiguration.STORAGE_WITH_COMPACTION
                            : TransactionReceiptEncodingConfiguration.STORAGE_WITHOUT_COMPACTION;
                    TransactionReceiptEncoder.writeTo(r, rlpOutput, options);
                  }));
    }
One time migration of variables from the blockchain storage to the dedicated variable storage.
To avoid state inconsistency in case of a downgrade done without running the storage
revert-variables subcommand it fails giving the possibility to retry the downgrade procedure.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/storage/keyvalue/KeyValueStoragePrefixedKeyBlockchainStorage.java