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

Repeatedly polling TRX balance when in video call (with sidebar closed). #2424

Open
arpee opened this issue Mar 28, 2024 · 1 comment
Open
Assignees
Labels
Small T-shirt Sizing (0-1 Day)

Comments

@arpee
Copy link
Member

arpee commented Mar 28, 2024

Image

Seeing this every 5 seconds or so.

@arpee arpee added the Small T-shirt Sizing (0-1 Day) label Mar 28, 2024
@umairkhannn
Copy link
Member

I have found out that this caused when a spam transaction is generated from spam module.

  1. spam module generates spam tx.
  2. At rust end it process that tx inside saito-core/src/core/consensus/wallet.rs and sends "wallet-updated" to JS.
  3. That event is received inside saito-header.js and it fetches preffered_crypto balance, if preffered crypto is saito it fetches balance from rust, and if preffered_crypto is TRX it sends balance request to mixin.

Now i am not exactly sure why on each spam tx, we get wallet-updated event but I am guessing that its because spam tx have fee, amount and utxo key inside it.

Image

Here are the methods from where wallet-updated event is triggered inside wallet.rs at rust side:

load
reset
add_slip
remove_slip
generate_slip
delete_block
update_from_balance_snapshot
on_chain_reorganization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Small T-shirt Sizing (0-1 Day)
Projects
None yet
Development

No branches or pull requests

2 participants