Reduce proof-of-time-elapsed waiting time

This commit is contained in:
Garrett Mills 2021-04-10 15:59:53 -05:00
parent 323c9408a0
commit 0a512170cc
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -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()