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

Resolving tx inputs in transactions in mockchain #227

Open
koslambrou opened this issue Oct 22, 2024 · 0 comments
Open

Resolving tx inputs in transactions in mockchain #227

koslambrou opened this issue Oct 22, 2024 · 0 comments

Comments

@koslambrou
Copy link
Collaborator

As a user of the Mockchain in testing, I want to be able to resolve the transaction inputs of some Tx.

By resolve, I mean going from C.TxIn to C.TxOut era. This is typically done by a chain-indexer, but the Mockchain should be capable of doing so. Currently, we are able to resolve C.TxIn, but only if they are unspent.

Possible solution

Similar to mscDatums, should we separately index the transaction outputs instead of using mcsPoolState?

For example, we can add another field in MockchainState such as Map C.TxIn (C.TxOut ERA)? Then, we can also use that to resolve the TxIn in utxoByTxIn function of MonadBlockchain.

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