Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor fails to get data from the public BSC RPC endpoint #538

Open
akolotov opened this issue Mar 30, 2021 · 0 comments
Open

Monitor fails to get data from the public BSC RPC endpoint #538

akolotov opened this issue Mar 30, 2021 · 0 comments
Labels
bug Something isn't working monitor related to TokenBridge monitor

Comments

@akolotov
Copy link
Collaborator

The following messages appears when the monitor is trying to get stats for the ETH-BSC AMB bridge.

2021-03-30T20:45:18.997Z [checkWorker] Error: Error: Returned error: exceed maximum block range: 5000
    at getPastEvents (/mono/commons/utils.js:185:13)
2021-03-30T20:45:21.292Z [checkWorker2] Error: Error: Returned error: exceed maximum block range: 5000
    at getPastEvents (/mono/commons/utils.js:185:13)
2021-03-30T20:45:23.383Z [checkWorker3] checkWorker3.js Error: Error: Returned error: exceed maximum block range: 5000
    at getPastEvents (/mono/commons/utils.js:185:13)

Consider to implement a fix similar it was provided for ALM in #529.

Just in case, the following is output on STDOUT:

$ timeout -s 9 5m node checkWorker.js && timeout -s 9 5m node checkWorker2.js && timeout -s 9 5m node checkWorker3.js
2021-03-30T20:45:17.968Z (+0ms) [checkWorker] Bridge mode: ARBITRARY_MESSAGE
2021-03-30T20:45:17.970Z (+2ms) [checkWorker] calling getEventsInfo()
2021-03-30T20:45:17.971Z (+0ms) [eventsUtils] checking existing events cache
2021-03-30T20:45:17.993Z (+22ms) [eventsUtils] getting last block numbers
2021-03-30T20:45:18.615Z (+622ms) [eventsUtils] calling oldHomeBridge.getPastEvents('UserRequestForSignature(bytes)')
2021-03-30T20:45:18.618Z (+0ms) [web3Cache] Cache hit for blocks 2756521...6141300
2021-03-30T20:45:18.618Z (+0ms) [web3Cache] Fetching events for blocks 6141301...6141398
2021-03-30T20:45:18.663Z (+45ms) [web3Cache] Saving events cache for amb-eth-bsc/home/0x6943A218d58135793F1FE619414eD476C37ad65a/UserRequestForSignature(bytes) on disk
2021-03-30T20:45:18.664Z (+49ms) [eventsUtils] found 0 events
2021-03-30T20:45:18.665Z (+1ms) [eventsUtils] calling oldForeignBridge.getPastEvents('UserRequestForAffirmation(bytes)')
2021-03-30T20:45:18.666Z (+3ms) [web3Cache] Cache hit for blocks 11375619...12142861
2021-03-30T20:45:18.666Z (+0ms) [web3Cache] Fetching events for blocks 12142862...12142886
2021-03-30T20:45:18.777Z (+111ms) [web3Cache] Saving events cache for amb-eth-bsc/foreign/0x07955be2967B655Cf52751fCE7ccC8c61EA594e2/UserRequestForAffirmation(bytes) on disk
2021-03-30T20:45:18.778Z (+113ms) [eventsUtils] found 0 events
2021-03-30T20:45:18.779Z (+1ms) [eventsUtils] calling homeBridge.getPastEvents('UserRequestForSignature')
2021-03-30T20:45:18.780Z (+3ms) [web3Cache] Cache hit for blocks 2756521...6141300
2021-03-30T20:45:18.781Z (+1ms) [web3Cache] Fetching events for blocks 6141301...6141398
2021-03-30T20:45:18.828Z (+47ms) [web3Cache] Saving events cache for amb-eth-bsc/home/0x6943A218d58135793F1FE619414eD476C37ad65a/UserRequestForSignature(bytes32,bytes) on disk
2021-03-30T20:45:18.829Z (+50ms) [eventsUtils] calling foreignBridge.getPastEvents('RelayedMessage')
2021-03-30T20:45:18.833Z (+5ms) [web3Cache] Cache hit for blocks 11375619...12142861
2021-03-30T20:45:18.834Z (+1ms) [web3Cache] Fetching events for blocks 12142862...12142894
2021-03-30T20:45:18.937Z (+103ms) [web3Cache] Saving events cache for amb-eth-bsc/foreign/0x07955be2967B655Cf52751fCE7ccC8c61EA594e2/RelayedMessage(address,address,bytes32,bool) on disk
2021-03-30T20:45:18.938Z (+109ms) [eventsUtils] calling homeBridge.getPastEvents('AffirmationCompleted')
2021-03-30T20:45:18.941Z (+4ms) [web3Cache] Cache hit for blocks 2756521...5980702
2021-03-30T20:45:18.941Z (+0ms) [web3Cache] Fetching events for blocks 5980703...6141406
2021-03-30T20:45:20.092Z (+0ms) [checkWorker2] calling eventsStats()
2021-03-30T20:45:20.099Z (+0ms) [eventsUtils] checking existing events cache
2021-03-30T20:45:20.410Z (+311ms) [eventsUtils] getting last block numbers
2021-03-30T20:45:20.984Z (+574ms) [eventsUtils] calling oldHomeBridge.getPastEvents('UserRequestForSignature(bytes)')
2021-03-30T20:45:20.985Z (+0ms) [web3Cache] Cache hit for blocks 2756521...6141398
2021-03-30T20:45:20.986Z (+1ms) [web3Cache] Fetching events for blocks 6141399...6141399
2021-03-30T20:45:21.033Z (+47ms) [web3Cache] Saving events cache for amb-eth-bsc/home/0x6943A218d58135793F1FE619414eD476C37ad65a/UserRequestForSignature(bytes) on disk
2021-03-30T20:45:21.035Z (+51ms) [eventsUtils] found 0 events
2021-03-30T20:45:21.035Z (+0ms) [eventsUtils] calling oldForeignBridge.getPastEvents('UserRequestForAffirmation(bytes)')
2021-03-30T20:45:21.036Z (+3ms) [web3Cache] Cache hit for blocks 11375619...12142886
2021-03-30T20:45:21.036Z (+0ms) [web3Cache] Saving events cache for amb-eth-bsc/foreign/0x07955be2967B655Cf52751fCE7ccC8c61EA594e2/UserRequestForAffirmation(bytes) on disk
2021-03-30T20:45:21.037Z (+2ms) [eventsUtils] found 0 events
2021-03-30T20:45:21.037Z (+0ms) [eventsUtils] calling homeBridge.getPastEvents('UserRequestForSignature')
2021-03-30T20:45:21.038Z (+2ms) [web3Cache] Cache hit for blocks 2756521...6141398
2021-03-30T20:45:21.039Z (+1ms) [web3Cache] Fetching events for blocks 6141399...6141399
2021-03-30T20:45:21.128Z (+89ms) [web3Cache] Saving events cache for amb-eth-bsc/home/0x6943A218d58135793F1FE619414eD476C37ad65a/UserRequestForSignature(bytes32,bytes) on disk
2021-03-30T20:45:21.130Z (+93ms) [eventsUtils] calling foreignBridge.getPastEvents('RelayedMessage')
2021-03-30T20:45:21.131Z (+3ms) [web3Cache] Cache hit for blocks 11375619...12142886
2021-03-30T20:45:21.131Z (+0ms) [web3Cache] Fetching events for blocks 12142887...12142894
2021-03-30T20:45:21.234Z (+103ms) [web3Cache] Saving events cache for amb-eth-bsc/foreign/0x07955be2967B655Cf52751fCE7ccC8c61EA594e2/RelayedMessage(address,address,bytes32,bool) on disk
2021-03-30T20:45:21.235Z (+105ms) [eventsUtils] calling homeBridge.getPastEvents('AffirmationCompleted')
2021-03-30T20:45:21.237Z (+3ms) [web3Cache] Cache hit for blocks 2756521...5980702
2021-03-30T20:45:21.237Z (+0ms) [web3Cache] Fetching events for blocks 5980703...6141407
2021-03-30T20:45:22.493Z (+0ms) [checkWorker3] calling detectMediators()
2021-03-30T20:45:22.496Z (+0ms) [eventsUtils] checking existing events cache
2021-03-30T20:45:22.515Z (+19ms) [eventsUtils] getting last block numbers
2021-03-30T20:45:23.129Z (+614ms) [eventsUtils] calling oldHomeBridge.getPastEvents('UserRequestForSignature(bytes)')
2021-03-30T20:45:23.131Z (+0ms) [web3Cache] Cache hit for blocks 2756521...6141399
2021-03-30T20:45:23.131Z (+0ms) [web3Cache] Fetching events for blocks 6141400...6141400
2021-03-30T20:45:23.198Z (+67ms) [web3Cache] Saving events cache for amb-eth-bsc/home/0x6943A218d58135793F1FE619414eD476C37ad65a/UserRequestForSignature(bytes) on disk
2021-03-30T20:45:23.200Z (+71ms) [eventsUtils] found 0 events
2021-03-30T20:45:23.201Z (+1ms) [eventsUtils] calling oldForeignBridge.getPastEvents('UserRequestForAffirmation(bytes)')
2021-03-30T20:45:23.201Z (+3ms) [web3Cache] Cache hit for blocks 11375619...12142886
2021-03-30T20:45:23.202Z (+1ms) [web3Cache] Saving events cache for amb-eth-bsc/foreign/0x07955be2967B655Cf52751fCE7ccC8c61EA594e2/UserRequestForAffirmation(bytes) on disk
2021-03-30T20:45:23.202Z (+1ms) [eventsUtils] found 0 events
2021-03-30T20:45:23.203Z (+1ms) [eventsUtils] calling homeBridge.getPastEvents('UserRequestForSignature')
2021-03-30T20:45:23.204Z (+2ms) [web3Cache] Cache hit for blocks 2756521...6141399
2021-03-30T20:45:23.204Z (+0ms) [web3Cache] Fetching events for blocks 6141400...6141400
2021-03-30T20:45:23.243Z (+39ms) [web3Cache] Saving events cache for amb-eth-bsc/home/0x6943A218d58135793F1FE619414eD476C37ad65a/UserRequestForSignature(bytes32,bytes) on disk
2021-03-30T20:45:23.244Z (+41ms) [eventsUtils] calling foreignBridge.getPastEvents('RelayedMessage')
2021-03-30T20:45:23.245Z (+2ms) [web3Cache] Cache hit for blocks 11375619...12142886
2021-03-30T20:45:23.246Z (+1ms) [web3Cache] Fetching events for blocks 12142887...12142894
2021-03-30T20:45:23.342Z (+96ms) [web3Cache] Saving events cache for amb-eth-bsc/foreign/0x07955be2967B655Cf52751fCE7ccC8c61EA594e2/RelayedMessage(address,address,bytes32,bool) on disk
2021-03-30T20:45:23.343Z (+99ms) [eventsUtils] calling homeBridge.getPastEvents('AffirmationCompleted')
2021-03-30T20:45:23.345Z (+3ms) [web3Cache] Cache hit for blocks 2756521...5980702
2021-03-30T20:45:23.345Z (+0ms) [web3Cache] Fetching events for blocks 5980703...6141408
@akolotov akolotov added bug Something isn't working monitor related to TokenBridge monitor labels Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working monitor related to TokenBridge monitor
Projects
None yet
Development

No branches or pull requests

1 participant