Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions conduit/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
yaml "gopkg.in/yaml.v3"

sdk "github.com/algorand/go-algorand-sdk/v2/types"
"github.com/algorand/go-algorand-sdk/v2/protocol/config"

"github.com/algorand/conduit/conduit"
"github.com/algorand/conduit/conduit/data"
Expand Down Expand Up @@ -271,6 +272,14 @@ func (p *pipelineImpl) Init() error {
}
}

// Read custom consensus file for custom protocols
var consensus config.ConsensusProtocols
consensus , consensusErr := config.PreloadConfigurableConsensusProtocols(p.cfg.ConduitArgs.ConduitDataDir)
if consensusErr != nil {
return consensusErr
}
config.Consensus = consensus

// Read metadata file if it exists. We have to do this here in order to get
// the round from a previous run if it exists.
p.pipelineMetadata = state{}
Expand Down
Loading