mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-12-16 08:14:15 -05:00
repeat publish with delay
This commit is contained in:
parent
d6e6a52010
commit
891799b09c
1 changed files with 3 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ public class ArbitratorManager {
|
||||||
|
|
||||||
private static final long REPUBLISH_MILLIS = Arbitrator.TTL / 2;
|
private static final long REPUBLISH_MILLIS = Arbitrator.TTL / 2;
|
||||||
private static final long RETRY_REPUBLISH_SEC = 5;
|
private static final long RETRY_REPUBLISH_SEC = 5;
|
||||||
|
private static final long REPEATED_REPUBLISH_AT_STARTUP_SEC = 60;
|
||||||
|
|
||||||
private static final String publicKeyForTesting = "027a381b5333a56e1cc3d90d3a7d07f26509adf7029ed06fc997c656621f8da1ee";
|
private static final String publicKeyForTesting = "027a381b5333a56e1cc3d90d3a7d07f26509adf7029ed06fc997c656621f8da1ee";
|
||||||
|
|
||||||
|
|
@ -160,6 +161,8 @@ public class ArbitratorManager {
|
||||||
|
|
||||||
republishArbitratorTimer = UserThread.runPeriodically(this::republishArbitrator, REPUBLISH_MILLIS, TimeUnit.MILLISECONDS);
|
republishArbitratorTimer = UserThread.runPeriodically(this::republishArbitrator, REPUBLISH_MILLIS, TimeUnit.MILLISECONDS);
|
||||||
|
|
||||||
|
UserThread.runAfter(this::republishArbitrator, REPEATED_REPUBLISH_AT_STARTUP_SEC);
|
||||||
|
|
||||||
applyArbitrators();
|
applyArbitrators();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue