-
yacovm authored
This change set implements logic for pulling all needed chains the newly joined orderer is part of. It adds a Replicator struct which has the following methods: - IsReplicationNeeded: Expected to run at boot time to decide whether to actiate the onboarding code or skip to resume normal boot. - ReplicateChains: Orchestrates replication of all (needed) chains by iterating the system channel and inspecting all channel creation transactions (by using previously code in past commits), and calling PullChannel on each needed channel. - PullChannel: Pulls a channel and commits the blocks to the ledger. Unit tests with full code coverage are included. Change-Id: Ice450f5702e6316e8f3aa9aabdeb952749a9ff66 Signed-off-by: yacovm <yacovm@il.ibm.com>
97243c77