Skip to content

Commit

Permalink
Change max synced age ms to use block time
Browse files Browse the repository at this point in the history
This was originally meant to be 4x block time, but since we changed the
block time, this is out of sync. Were also making this 12 hours
temporarily because of all the long blocks to mine issue. We'll adjust
this and reduce it again if we find that too maqny forks exist.
  • Loading branch information
NullSoldier committed Dec 12, 2021
1 parent 83f65f9 commit b4ac6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ironfish/src/consensus/consensus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const GENESIS_SUPPLY_IN_IRON = 42000000
/**
* The oldest the tip should be before we consider the chain synced
*/
export const MAX_SYNCED_AGE_MS = 60 * 1000
export const MAX_SYNCED_AGE_MS = 12 * 60 * 60 * 1000

/**
* The maximum allowed requested blocks by the network
Expand Down

0 comments on commit b4ac6a2

Please sign in to comment.