Skip to content
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

Pact DB: Tx Type capture #1456

Open
sirlensalot opened this issue Jun 11, 2022 · 0 comments
Open

Pact DB: Tx Type capture #1456

sirlensalot opened this issue Jun 11, 2022 · 0 comments

Comments

@sirlensalot
Copy link
Contributor

For every txid, capture a Tx Type, to stop having to manually instrument/use heuristics to detect gas txs, upgrades etc.

Tx type is mapped to txid as one of ( TX | GASBUY | GASREDEEM | COINBASE | ADMIN).

  • TX is a "normal" user transaction.
  • GASBUY is the gas-debiting transaction that precedes TX execution.
  • GASREDEEM redeems unspent gas and rewards miner after TX execution.
  • COINBASE is the block reward transaction.
  • ADMIN is any kind of special execution, including genesis transactions and "upgrade" transactions.

Data model:
Keyed on txid, captures tx type, associated request key if any, block height (for associating with block data via BlockHistory).

Will need to be maintained on rewind the usual way (deleting all rows for txids greater than the "last txid" for the rewound block).

@kadena-io kadena-io deleted a comment Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant