-
Notifications
You must be signed in to change notification settings - Fork 161
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
[BUG] - pool_owner.hash cannot be joined with stake_address.hash_raw #543
Comments
Why can't Ahh, now I see it. Yes, that is a pain in the neck!. The |
Merci. Would it be safe to prepend the pool_owner.hash with '\xe1' for now? |
Yes, that would help for now. Also, please post the working query here. |
Here you go ... it actually removes the prefix from both and does a string compare
I use the H2 Console for this |
simplified, like this ...
|
The `pool_owner` table used to contain a hash of the pool owners staking key, which is difficult to do an SQL join on so instead we use an index into the `stake_address` table. To get a staking credential from a staking key hash it just needs to be wrapped it in a `KeyHashObj` constructor whose id can then be queried from the `stake_address` table. Closes: #543
Other than
pool_update.reward_addr
andepoch_stake.addr_id
,pool_owner.hash
cannot be joined withstake_address.hash_raw
.Is this intentionally? Perhaps there is another way to get at the BECH32 for a pool owner?
The text was updated successfully, but these errors were encountered: