-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Use blockscout to find valid payouts #5690
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5690 +/- ##
==========================================
- Coverage 30.09% 23.81% -6.29%
==========================================
Files 249 275 +26
Lines 21448 29680 +8232
Branches 3110 5199 +2089
==========================================
+ Hits 6454 7067 +613
- Misses 14718 22396 +7678
+ Partials 276 217 -59
Continue to review full report at Codecov.
|
app/dashboard/utils.py
Outdated
funderAddress = bounty.bounty_owner_profile.etc_address | ||
blockscout_url = f'https://blockscout.com/etc/mainnet/api?module=account&action=txlist&address={funderAddress}' | ||
response = requests.get(blockscout_url).json() | ||
didFindPayout = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this used? or what is this one for?
Description
This PR adds a utility function to check to see if a payout tx has been made for ETC using blockscout. It also adds a payout_tx_id to the bounty model to track previous payouts.
Refers/Fixes
#5561
Testing
untested