private void applyHistoryState(AddressStatus status, HashMap<Sha256Hash, BitTransaction> txs) { checkState(lock.isHeldByCurrentThread(), "Lock is held by another thread"); checkState(!status.isHistoryTxStateApplied(), "History tx state already applied"); // Update confirmation status if necessary for (HistoryTx historyTx : status.getHistoryTxs()) { BitTransaction tx = checkNotNull(txs.get(historyTx.getTxHash())); checkTxConfirmation(historyTx, tx); } status.setHistoryTxStateApplied(true); if (status.canCommitStatus()) commitAddressStatus(status); }