Add get_tera_shares() to schema #403
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
parasitepool/para!403
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "parabit/tshare-helper-funciton"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Returns the number of shares with a difficulty greater than 1T. Function already exists so no dedicated migration/deployment is required after merge.
In Rust terms the function is
Unlike in rust we can just exclude values if they are None, so this can be called over:
The whole range of shares:
SELECT * FROM get_tera_shares();Shares since a specified height:
SELECT * FROM get_tera_shares(930377);Shares between two specified heights:
SELECT * FROM get_tera_shares(930377, 930900);min_blockheight is inclusive and max_blockheight is exclusive.
Yes, we absolutely can! I hadn't even considered doing so as this was just an adhoc query I was running. Good change request!