bbedward / graham_discord_bot

Discord Bot for the BANANO and NANO cryptocurrencies
MIT License
69 stars 55 forks source link

triple tip worked, but only last tip got emojis. #26

Closed ghost closed 4 years ago

ghost commented 6 years ago

i did .ban, saw no response emojis. did .ban again, no response emojis. did .ban a third time, only the third one got check marks. but all three went through.

I deleted the posts since they were spam in the tahiti channel. I'm not sure if deleting them had anything to do with it, as I waited a while (2 minutes) before deleting them.

bbedward commented 6 years ago

This happens when the node is non-responsive.

There's something like a 5 minute timeout , so if it takes 3 minutes to get a node response for example the tip still goes through. If it takes > 5 minutes then the RPC call times out and tip doesn't go through.

Will probably solve in Graham 4.0 by reducing the timeout for RPC calls that should be fast (like balance). And adding feedback when a request times out so you know the tip won't be processed.

In short term, can reduce the timeout

bbedward commented 4 years ago

Bot responds immediately when tip is successful in v4

https://github.com/bbedward/Graham_Nano_Tip_Bot/tree/v4

No response emojis in v4 could be related to discord APIs being offline, having issues, etc. - but will consider those an edge case we can't do anything about.