Skip to content

Commit

Permalink
Merge pull request #220 from Qortal/master2
Browse files Browse the repository at this point in the history
adjust timeouts for qortalrequests
  • Loading branch information
crowetic authored Dec 2, 2024
2 parents 2347118 + 7803d6c commit bd214a0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/resources/q-apps/q-apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@ function getDefaultTimeout(action) {
switch (action) {
case "GET_USER_ACCOUNT":
case "SAVE_FILE":
case "SIGN_TRANSACTION":
case "DECRYPT_DATA":
// User may take a long time to accept/deny the popup
return 60 * 60 * 1000;
Expand All @@ -635,6 +636,11 @@ function getDefaultTimeout(action) {
// Chat messages rely on PoW computations, so allow extra time
return 60 * 1000;

case "CREATE_TRADE_BUY_ORDER":
case "CREATE_TRADE_SELL_ORDER":
case "CANCEL_TRADE_SELL_ORDER":
case "VOTE_ON_POLL":
case "CREATE_POLL":
case "JOIN_GROUP":
case "DEPLOY_AT":
case "SEND_COIN":
Expand All @@ -649,7 +655,7 @@ function getDefaultTimeout(action) {
break;
}
}
return 10 * 1000;
return 30 * 1000;
}

/**
Expand Down

0 comments on commit bd214a0

Please sign in to comment.