forked from Qortal/qortal
Added saveChanges() missing from previous commit, and a discardChanges() just in case.
This commit is contained in:
parent
d82da160f3
commit
6b5d938a40
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user