Reduce proof-of-time-elapsed waiting time

working-state
Garrett Mills 3 years ago
parent 323c9408a0
commit 0a512170cc
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -119,9 +119,9 @@ export interface Peer {
*/
@Singleton()
export class Blockchain extends Unit {
private readonly MIN_WAIT_TIME = 1000
private readonly MAX_WAIT_TIME = 5000
private readonly PENALTY_INTERVAL = 500
private readonly MIN_WAIT_TIME = 30
private readonly MAX_WAIT_TIME = 500
private readonly PENALTY_INTERVAL = 100
private readonly MAX_PEERS_PENALTY = 10
@Inject()

Loading…
Cancel
Save