hyperledger-archives / iroha

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

Synchronizer: observable passthrough to ChainValidator #2163

Closed MBoldyrev closed 5 years ago

MBoldyrev commented 5 years ago

Description of the Change

IR-361

This change makes the synced blocks observable provided by block loader transport be passed to ChainValidator directly (hot observable), without using the stored collection. The collection is still kept in this PR, but it will be removed when all the necessary changes (like this one) are made so that no component needs it.

This is part of closed #2142.

Benefits

One step towards removing in memory blocks accumulation during synchronization. Together with #2160 provides early cancellation of failing block sequence loading.

Possible Drawbacks