-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Periodic check for RPC sync state (#656)
- Loading branch information
1 parent
bcf1614
commit 297cb67
Showing
10 changed files
with
80 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
const baseConfig = require('./base.config') | ||
|
||
const { DEFAULT_TRANSACTION_RESEND_INTERVAL } = require('../src/utils/constants') | ||
const { web3Foreign, web3ForeignRedundant, web3ForeignFallback } = require('../src/services/web3') | ||
|
||
const { ORACLE_FOREIGN_TX_RESEND_INTERVAL } = process.env | ||
|
||
module.exports = { | ||
...baseConfig, | ||
main: baseConfig.foreign, | ||
queue: 'foreign-prioritized', | ||
id: 'foreign', | ||
name: 'sender-foreign', | ||
web3: web3Foreign, | ||
web3Redundant: web3ForeignRedundant, | ||
web3Fallback: web3ForeignFallback, | ||
resendInterval: parseInt(ORACLE_FOREIGN_TX_RESEND_INTERVAL, 10) || DEFAULT_TRANSACTION_RESEND_INTERVAL | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
const baseConfig = require('./base.config') | ||
|
||
const { DEFAULT_TRANSACTION_RESEND_INTERVAL } = require('../src/utils/constants') | ||
const { web3Home, web3HomeRedundant, web3HomeFallback } = require('../src/services/web3') | ||
|
||
const { ORACLE_HOME_TX_RESEND_INTERVAL } = process.env | ||
|
||
module.exports = { | ||
...baseConfig, | ||
main: baseConfig.home, | ||
queue: 'home-prioritized', | ||
id: 'home', | ||
name: 'sender-home', | ||
web3: web3Home, | ||
web3Redundant: web3HomeRedundant, | ||
web3Fallback: web3HomeFallback, | ||
resendInterval: parseInt(ORACLE_HOME_TX_RESEND_INTERVAL, 10) || DEFAULT_TRANSACTION_RESEND_INTERVAL | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters