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

Add season funding summary audit script #313

Open
smk762 opened this issue Jun 27, 2022 · 1 comment
Open

Add season funding summary audit script #313

smk762 opened this issue Jun 27, 2022 · 1 comment
Assignees
Labels

Comments

@smk762
Copy link
Owner

smk762 commented Jun 27, 2022

for coin in coins:
    for txid in scan_distro_address_txids(coin):
         if incoming:
              if selfsend:
                     add_to_selfsend(coin, txid)
              elif source_addr in nn_addreses:
                     add_to_returned_funds(nn, coin, amount)
              else:
                     add_to_source_total(from_addr, coin, amount)

         if outgoing:
               if dest in nn_addresses:
                      add_to_nn_total(nn, coin, amount)
               else:
                      add_to_review(coin, txid)

Outputs:

  • sum of incoming source distribution funds per coin
  • sum of funds distributed to each nn per coin (can compare against ntx count for efficiency)
  • list of other tx for further review

Next:

  • investigate efficiency outliers to determine unauthorised funds ex-filtration.
  • Contrast and compare efficiency vs ranking
  • Generate reports, and record values to better estimate future funding requirements.
@smk762 smk762 added the audit label Jun 27, 2022
@smk762 smk762 self-assigned this Jun 27, 2022
@smk762
Copy link
Owner Author

smk762 commented Jun 28, 2022

Will need to run this on NN dev server to interact with RPCs, as using APIs will take too long due to rate limiting.
From there, copy json to stats server, and add to database for future reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant