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

Ignore unrecognized messages in bridge counter processes #3623

Merged
merged 1 commit into from
Feb 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
- [#3564](https://github.com/poanetwork/blockscout/pull/3564) - Staking welcome message

### Fixes
- [#3622](https://github.com/poanetwork/blockscout/pull/3622) - Contract reader: fix int type output
- [#3623](https://github.com/poanetwork/blockscout/pull/3623) - Ignore unrecognized messages in bridge counter processes
- [#3622](https://github.com/poanetwork/blockscout/pull/3622) - Contract reader: fix int type output Ignore unrecognized messages in bridge counter processes
- [#3621](https://github.com/poanetwork/blockscout/pull/3621) - Contract reader: :binary input/output fix
- [#3620](https://github.com/poanetwork/blockscout/pull/3620) - Ignore unfamiliar messages by Explorer.Staking.ContractState module
- [#3611](https://github.com/poanetwork/blockscout/pull/3611) - Fix logo size
Expand Down
5 changes: 5 additions & 0 deletions apps/explorer/lib/explorer/counters/bridge.ex
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ defmodule Explorer.Counters.Bridge do
{:noreply, state}
end

# don't handle other messages (e.g. :ssl_closed)
def handle_info(_, state) do
{:noreply, state}
end

def fetch_token_bridge_total_supply do
if bridges_table_exists?() do
do_fetch_token_bridge_total_supply(:ets.lookup(@bridges_table, @current_total_supply_from_token_bridge_cache_key))
Expand Down