tmp: Add debugging for bids
All checks were successful
Build Docker / Build Image (push) Successful in 1m1s
All checks were successful
Build Docker / Build Image (push) Successful in 1m1s
This commit is contained in:
4
main.py
4
main.py
@@ -923,6 +923,10 @@ def auction(domain):
|
|||||||
# Get TX
|
# Get TX
|
||||||
revealInfo = account_module.getRevealTX(reveal)
|
revealInfo = account_module.getRevealTX(reveal)
|
||||||
reveal['bid'] = revealInfo
|
reveal['bid'] = revealInfo
|
||||||
|
print("RAW Bids found: ", len(bids))
|
||||||
|
print(json.dumps(bids, indent=4))
|
||||||
|
print("RAW Reveals found: ", len(reveals))
|
||||||
|
print(json.dumps(reveals, indent=4))
|
||||||
bids = render.bids(bids,reveals)
|
bids = render.bids(bids,reveals)
|
||||||
|
|
||||||
stats = domainInfo['info']['stats'] if 'stats' in domainInfo['info'] else {}
|
stats = domainInfo['info']['stats'] if 'stats' in domainInfo['info'] else {}
|
||||||
|
|||||||
@@ -320,7 +320,8 @@ def bids(bids,reveals):
|
|||||||
'value': value,
|
'value': value,
|
||||||
'sort_value': value if revealed else lockup # Use value for sorting if revealed, otherwise lockup
|
'sort_value': value if revealed else lockup # Use value for sorting if revealed, otherwise lockup
|
||||||
})
|
})
|
||||||
|
print("PARSED Bids found: ", len(bid_data))
|
||||||
|
print(json.dumps(bid_data, indent=4))
|
||||||
# Sort by the sort_value in descending order (highest first)
|
# Sort by the sort_value in descending order (highest first)
|
||||||
bid_data.sort(key=lambda x: x['sort_value'], reverse=True)
|
bid_data.sort(key=lambda x: x['sort_value'], reverse=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user