hyperledger-iroha / iroha-ametsuchi

Flatbuffer database for the Hyperledger Iroha project.
http://www.iroha.tech
Apache License 2.0
15 stars 8 forks source link

Wanted Function `getTransactions` #62

Closed satellitex closed 7 years ago

satellitex commented 7 years ago

Wanted function.

It provide that getting all transactions after index -th in ametsuchi db. ( But its size is very large. Actually, we should get alike streaming )

It will be used by new peer when that wants to synchronize transaction.

Warchant commented 7 years ago

I think we can give you some sort of iterator.

auto it = ametsuchi.iterator(N);
++it;
--it;