fix(hermes): fix slot metadata bug
This commit is contained in:
parent
2008da7a45
commit
272dbef9b3
|
@ -1764,7 +1764,7 @@ checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
|
|||
|
||||
[[package]]
|
||||
name = "hermes"
|
||||
version = "0.1.17"
|
||||
version = "0.1.18"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "hermes"
|
||||
version = "0.1.17"
|
||||
version = "0.1.18"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -8,14 +8,16 @@ with pkgs; mkShell {
|
|||
llvmPackages.libclang
|
||||
nettle
|
||||
openssl_1_1
|
||||
pkgconfig
|
||||
pkg-config
|
||||
iconv
|
||||
protobuf
|
||||
go
|
||||
rustup
|
||||
curl
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
export LIBCLANG_PATH="${llvmPackages.libclang.lib}/lib";
|
||||
export CPATH="${darwin.Libsystem}/include";
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -211,7 +211,8 @@ pub async fn store_update(state: &State, update: Update) -> Result<()> {
|
|||
let mut aggregate_state = state.aggregate_state.write().await;
|
||||
aggregate_state.latest_observed_slot = aggregate_state
|
||||
.latest_observed_slot
|
||||
.map(|latest| latest.max(slot));
|
||||
.map(|latest| latest.max(slot))
|
||||
.or(Some(slot));
|
||||
}
|
||||
|
||||
let accumulator_messages = state.fetch_accumulator_messages(slot).await?;
|
||||
|
@ -260,7 +261,8 @@ pub async fn store_update(state: &State, update: Update) -> Result<()> {
|
|||
|
||||
aggregate_state.latest_completed_slot = aggregate_state
|
||||
.latest_completed_slot
|
||||
.map(|latest| latest.max(slot));
|
||||
.map(|latest| latest.max(slot))
|
||||
.or(Some(slot));
|
||||
|
||||
aggregate_state
|
||||
.latest_completed_update_at
|
||||
|
|
Loading…
Reference in New Issue