Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ethereum_chain_head_number is not tracking as expected for firehose-based chains #3732 #3771

Merged
merged 3 commits into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
2 changes: 1 addition & 1 deletion runtime/derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ edition = "2021"
proc-macro = true

[dependencies]
syn = { version = "1.0", features = ["full"] }
syn = { version = "1.0.98", features = ["full"] }
quote = "1.0"
5 changes: 4 additions & 1 deletion store/postgres/src/chain_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,10 @@ impl ChainStoreTrait for ChainStore {

let ptr = block.ptr();
let hash = ptr.hash_hex();
let number = ptr.number as i64;
let number = ptr.number as i64; //block height

//this will send an update via prostgres, channel: chain_head_updates
soleinik-figment marked this conversation as resolved.
Show resolved Hide resolved
self.chain_head_update_sender.send(&hash, number)?;

pool.with_conn(move |conn, _| {
conn.transaction(|| -> Result<(), StoreError> {
Expand Down