hyperledger-iroha / iroha-dco

Iroha - A simple, decentralized ledger
http://iroha.tech
Apache License 2.0
988 stars 296 forks source link

Add transactions limit to OnDemandCache #2206

Closed igor-egorov closed 5 years ago

igor-egorov commented 5 years ago

Signed-off-by: Igor Egorov igor@soramitsu.co.jp

Description of the Change

Iroha will not accept new transactions via Torii or ListTorii if its internals is not ready for new incoming transactions.

If Iroha is full then Torii or ListTorii will return grpc::StatusCode::RESOURCE_EXHAUSTED with textual description that includes "reduced hashes" of batches that were not processed.

Benefits

Improved robustness. Still the same API.

Possible Drawbacks

Unknown

Usage Examples or Tests

All the tests.