add latest from_block to logs
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
parent
7c57b9ea3f
commit
d45cc9bd13
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ghost-slow-clap"
|
name = "ghost-slow-clap"
|
||||||
version = "0.4.3"
|
version = "0.4.4"
|
||||||
description = "Applause protocol for the EVM bridge"
|
description = "Applause protocol for the EVM bridge"
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
authors.workspace = true
|
authors.workspace = true
|
||||||
|
|||||||
@ -897,6 +897,14 @@ impl<T: Config> Pallet<T> {
|
|||||||
|
|
||||||
StorageValueRef::persistent(&block_number_key).set(&new_block_range);
|
StorageValueRef::persistent(&block_number_key).set(&new_block_range);
|
||||||
|
|
||||||
|
log::info!(
|
||||||
|
target: LOG_TARGET,
|
||||||
|
"👻 Stored from_block is #{:?} from authority #{:?} for network {:?}",
|
||||||
|
new_block_range.0,
|
||||||
|
authority_index,
|
||||||
|
network_id,
|
||||||
|
);
|
||||||
|
|
||||||
if !sp_io::offchain::is_validator() {
|
if !sp_io::offchain::is_validator() {
|
||||||
log::info!(target: LOG_TARGET, "👻 Not a validator; no transactions available");
|
log::info!(target: LOG_TARGET, "👻 Not a validator; no transactions available");
|
||||||
return Ok(());
|
return Ok(());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user