skalenetwork / ima-agent

Containerized SKALE Interchain Messaging Agent
GNU Affero General Public License v3.0
2 stars 7 forks source link

Fix IMA Agent stuck when Main Net connectivity is off #30

Open sergiy-skalelabs opened 10 months ago

sergiy-skalelabs commented 10 months ago

If geth node of Main Net is not available over network and IMA Agent cannot connect to it then IMA Agent gets stuck up to 5 minutes while querying outgoing message counter: 2023-11-28 19:47:16.653: M2S/#474 transfer loop from Mainnet to xavier: Will call src-chain.MessageProxy.getOutgoingMessagesCounter()... This can be reproduced on dev net by disabling or enabling Main Net connectivity on dev net's node:

iptables -I OUTPUT -p tcp -m tcp --dport 1919 -j DROP
# enable
iptables -D OUTPUT -p tcp -m tcp --dport 1919 -j DROP