-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix/rbac indexing #1367
base: main
Are you sure you want to change the base?
Fix/rbac indexing #1367
Conversation
Signed-off-by: bkioshn <bkioshn@gmail.com>
❌ Test Report | |
❌ Test Report | |
✅ Test Report | |
✅ Test Report | |
✅ Test Report | |
✅ Test Report | |
✅ Test Report | |
✅ Test Report | |
❌ Test Report | |
catalyst-gateway/bin/src/db/index/schema/cql/catalyst_id_for_stake_addr.cql
Outdated
Show resolved
Hide resolved
catalyst-gateway/bin/src/db/index/block/rbac509/insert_rbac509_invalid.rs
Outdated
Show resolved
Hide resolved
catalyst-gateway/bin/src/db/index/queries/purge/cql/delete_rbac_registration.cql
Outdated
Show resolved
Hide resolved
catalyst-gateway/bin/src/db/index/queries/purge/cip36_registration_for_vote_key.rs
Outdated
Show resolved
Hide resolved
catalyst-gateway/bin/src/db/index/queries/purge/cip36_registration_invalid.rs
Outdated
Show resolved
Hide resolved
@@ -3,7 +3,7 @@ | |||
CREATE TABLE IF NOT EXISTS txo_assets_by_stake ( | |||
-- Primary Key Fields | |||
stake_address blob, -- stake address hash (28 bytes stake address hash, zero length if not staked.) |
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.
Can we make a clear distinction about this stake_address
and stake_hash
In CIP36 stake_address
is 32 bytes and here is 28 bytes. Maybe better to rename
stake_address
-> stake_public_key
since pubkey for Ed25519 32 bytes
stake_hash
can remain the same or change to stake_key_hash
like in the CIP19 document.
Description
Fixes RBAC indexing issues discovered inside cat-gateway.
Related Issue(s)
Closes #1366, #1759
Description of Changes
Fix RBAC indexing so it works properly and has no boundary conditions.
Breaking Changes
Nothing relies on it yet, so none.
Please confirm the following checks