Map transaction hash to block hash in wsv
#3063
Labels
Chore
This is a small task that can be done at any point in time and is easier than others
good first issue
Good for newcomers
iroha2-dev
The re-implementation of a BFT hyperledger in RUST
Optimization
Something isn't working as well as it should
I've noticed that we're storing hashes of all transactions in
wsv
as aDashSet<HashOf<VersionedSignedTransaction>>
. Since we're doing that, I would recommend that we store a mappingDashMap<HashOf<VersionedSignedTransaction>, HashOf<VersionedCommittedBlock>>
which would greatly seed up the search for a transaction in the blockchain. Currently we're searching the entire blockchain for the transaction based on the hashThe text was updated successfully, but these errors were encountered: