Added saveChanges() missing from previous commit, and a discardChanges() just in case.

This commit is contained in:
CalDescent 2021-10-29 16:16:05 +01:00
parent d82da160f3
commit 6b5d938a40

View File

@ -681,8 +681,12 @@ public class ArbitraryDataManager extends Thread {
LOGGER.info("Adding arbitrary peer: {} for signature {}", peer.getPeerData().getAddress().toString(), Base58.encode(signature));
ArbitraryPeerData arbitraryPeerData = new ArbitraryPeerData(signature, peer);
repository.getArbitraryRepository().save(arbitraryPeerData);
repository.saveChanges();
}
}
// If anything needed saving, it would already have called saveChanges() above
repository.discardChanges();
} catch (DataException e) {
LOGGER.error(String.format("Repository issue while processing arbitrary transaction signature list from peer %s", peer), e);
}