Skip to content

start_block config for cardano_node source - #165

Open
tdedgx wants to merge 1 commit into
dcSpark:mainfrom
tdedgx:main
Open

start_block config for cardano_node source#165
tdedgx wants to merge 1 commit into
dcSpark:mainfrom
tdedgx:main

Conversation

@tdedgx

@tdedgx tdedgx commented Dec 13, 2023

Copy link
Copy Markdown

start_block was getting ignored for cardano_node source? check for the config, otherwise use latest from db.

Not tested with Oura as the source

@SebastienGllmt

Copy link
Copy Markdown
Contributor

This feels reasonable to me, but maybe @gostkin you can check

Comment thread indexer/src/main.rs
.start_from(config.start_block)
.await
.context("Can't get starting point from sink")?;
tracing::info!("Passed start_block config: {:?}", config.start_block);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sink.start_from should be called anyway. doesn't matter if start_from is None. otherwise genesis data won't be processed

@gostkin gostkin Dec 18, 2023

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if start.is_empty() {
genesis::process_genesis(&self.db, &self.network, self.exec_plan.clone()).await?;
return self.get_latest_point().await;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants