forked from Qortal/qortal
Fixed issue in block archiver, which caused it to hold a transaction open for a very long time. This caused deadlocks when trying to create bootstraps or perform repository maintenance.
This commit is contained in:
parent
1ba542eb50
commit
ca02cd72ae
@ -83,6 +83,7 @@ public class BlockArchiver implements Runnable {
|
||||
case NOT_ENOUGH_BLOCKS:
|
||||
// We didn't reach our file size target, so that must mean that we don't have enough blocks
|
||||
// yet or something went wrong. Sleep for a while and then try again.
|
||||
repository.discardChanges();
|
||||
Thread.sleep(60 * 60 * 1000L); // 1 hour
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user