hyperledger-iroha / iroha

Iroha - A simple, enterprise-grade decentralized ledger
https://wiki.hyperledger.org/display/iroha
Apache License 2.0
438 stars 280 forks source link

[feature request] Instruction-level queries #4991

Open 0x009922 opened 2 months ago

0x009922 commented 2 months ago

Use case

In Explorer we need to display history not only in terms of blocks/transactions, but in terms of specific instructions (atomic operations) too: registers, mints, burns, transfers, grants, revokes etc.

Desired solution

mversic commented 2 weeks ago

This is unlikely to happen, at least not any time soon. This would be a black hole for memory consumption so it needs to be considered very carefully.

If we decide to do this, then for this feature to be useful and work correctly, we need to make sure that we also log every instruction that is executed from a smart contract, trigger or executor (it can modify existing or execute additional ISI)

mversic commented 2 weeks ago

is there an example of other blockchain explorers providing this feature?

0x009922 commented 2 weeks ago

is there an example of other blockchain explorers providing this feature?

I think other blockchains tend to work in terms of transactions as units of mutation. In Iroha it is a single unit too, but it can consist of multiple actual operations. So the question is: do users need to query for specific operations? (I don't have a definitive answer)