You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Action/Event output: ActionStates in the schema here corresponds to the account state after all the transactions in a block is applied. is the assumption that the values in ActionStates corresponds to each set of actions per transaction?
Output types
Remove accountUpdateId from ActionData. This refers to the database primary key. Consider replacing it with account ID and computed sequence number of the corresponding account update in the transaction
Similarly for EventData. In fact, there are 2 more orderings from here- For each account update there is a list of actions/events and each action is an array of field elements. Refer to the ordering issue here (Issue)
Queries
Nit: blocksAccessedCTE is more like bocksFiltered
I'm not sure if the filtering in emittedActionStateCTE makes sense. When would one want to retrieve field elements within a certain range? afaiu you'd need the action state value from the DB to confirm the order of actions applied. Filtering based on account and block height seems sufficient. Also the current implementation here isn't seem right
Schema
ActionStates
in the schema here corresponds to the account state after all the transactions in a block is applied. is the assumption that the values inActionStates
corresponds to each set of actions per transaction?Output types
accountUpdateId
fromActionData
. This refers to the database primary key. Consider replacing it with account ID and computed sequence number of the corresponding account update in the transactionEventData
. In fact, there are 2 more orderings from here- For each account update there is a list of actions/events and each action is an array of field elements. Refer to the ordering issue here (Issue)Queries
blocksAccessedCTE
is more likebocksFiltered
emittedActionStateCTE
makes sense. When would one want to retrieve field elements within a certain range? afaiu you'd need the action state value from the DB to confirm the order of actions applied. Filtering based on account and block height seems sufficient. Also the current implementation here isn't seem rightArchive-Node-API/src/db/sql/events-actions/queries.ts
Line 192 in 1bad4d3
Error handling
fullChainCTE
: Add missing block checks. Any gaps will go unnoticed wherever this is used and affect the final result in unexpected waysThe text was updated successfully, but these errors were encountered: