forked from Qortal-Forker/qortal
		
	Added saveChanges() missing from previous commit, and a discardChanges() just in case.
This commit is contained in:
		@@ -681,8 +681,12 @@ public class ArbitraryDataManager extends Thread {
 | 
				
			|||||||
					LOGGER.info("Adding arbitrary peer: {} for signature {}", peer.getPeerData().getAddress().toString(), Base58.encode(signature));
 | 
										LOGGER.info("Adding arbitrary peer: {} for signature {}", peer.getPeerData().getAddress().toString(), Base58.encode(signature));
 | 
				
			||||||
					ArbitraryPeerData arbitraryPeerData = new ArbitraryPeerData(signature, peer);
 | 
										ArbitraryPeerData arbitraryPeerData = new ArbitraryPeerData(signature, peer);
 | 
				
			||||||
					repository.getArbitraryRepository().save(arbitraryPeerData);
 | 
										repository.getArbitraryRepository().save(arbitraryPeerData);
 | 
				
			||||||
 | 
										repository.saveChanges();
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
								// If anything needed saving, it would already have called saveChanges() above
 | 
				
			||||||
 | 
								repository.discardChanges();
 | 
				
			||||||
		} catch (DataException e) {
 | 
							} catch (DataException e) {
 | 
				
			||||||
			LOGGER.error(String.format("Repository issue while processing arbitrary transaction signature list from peer %s", peer), e);
 | 
								LOGGER.error(String.format("Repository issue while processing arbitrary transaction signature list from peer %s", peer), e);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user