Skip to content

Commit

Permalink
dapp: Set lower default expiryFactor and make it configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
palango committed Dec 10, 2020
1 parent 01a9c88 commit 08910a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions raiden-dapp/src/services/raiden-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ export default class RaidenService {
...(process.env.VUE_APP_SETTLE_TIMEOUT && +process.env.VUE_APP_SETTLE_TIMEOUT
? { settleTimeout: +process.env.VUE_APP_SETTLE_TIMEOUT }
: undefined),
...(process.env.VUE_APP_EXPIRY_FACTOR && +process.env.VUE_APP_EXPIRY_FACTOR
? { expiryFactor: +process.env.VUE_APP_EXPIRY_FACTOR }
: undefined),
},
subkey,
);
Expand Down
2 changes: 1 addition & 1 deletion raiden-ts/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function makeDefaultConfig(
matrixServerLookup: matrixServerInfos,
settleTimeout: 500,
revealTimeout: 50,
expiryFactor: 2.0,
expiryFactor: 1.1,
httpTimeout: 30e3,
discoveryRoom: `raiden_${networkName}_discovery`,
pfsRoom: `raiden_${networkName}_path_finding`,
Expand Down

0 comments on commit 08910a7

Please sign in to comment.