Compare commits

..

1 Commits

Author SHA1 Message Date
2d90a939ef
Update README (remove screenshot for sha256 sum of genesis)
Signed-off-by: Doctor K <doctor_whoami@ghostchain.io>
2025-01-25 15:53:23 +03:00
7 changed files with 16 additions and 21 deletions

16
Cargo.lock generated
View File

@ -3528,7 +3528,7 @@ dependencies = [
[[package]] [[package]]
name = "ghost-cli" name = "ghost-cli"
version = "0.7.197" version = "0.7.196"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"clap 4.5.4", "clap 4.5.4",
@ -3584,7 +3584,7 @@ dependencies = [
[[package]] [[package]]
name = "ghost-machine-primitives" name = "ghost-machine-primitives"
version = "0.7.197" version = "0.7.196"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"sc-sysinfo", "sc-sysinfo",
@ -3593,7 +3593,7 @@ dependencies = [
[[package]] [[package]]
name = "ghost-metrics" name = "ghost-metrics"
version = "0.7.197" version = "0.7.196"
dependencies = [ dependencies = [
"assert_cmd", "assert_cmd",
"bs58 0.5.1", "bs58 0.5.1",
@ -3648,7 +3648,7 @@ dependencies = [
[[package]] [[package]]
name = "ghost-networks" name = "ghost-networks"
version = "0.7.197" version = "0.7.196"
dependencies = [ dependencies = [
"frame-benchmarking", "frame-benchmarking",
"frame-support", "frame-support",
@ -3665,7 +3665,7 @@ dependencies = [
[[package]] [[package]]
name = "ghost-node" name = "ghost-node"
version = "0.7.197" version = "0.7.196"
dependencies = [ dependencies = [
"assert_cmd", "assert_cmd",
"color-eyre", "color-eyre",
@ -3696,7 +3696,7 @@ dependencies = [
[[package]] [[package]]
name = "ghost-rpc" name = "ghost-rpc"
version = "0.7.197" version = "0.7.196"
dependencies = [ dependencies = [
"ghost-core-primitives", "ghost-core-primitives",
"jsonrpsee", "jsonrpsee",
@ -3748,7 +3748,7 @@ dependencies = [
[[package]] [[package]]
name = "ghost-service" name = "ghost-service"
version = "0.7.197" version = "0.7.196"
dependencies = [ dependencies = [
"assert_matches", "assert_matches",
"async-trait", "async-trait",
@ -3832,7 +3832,7 @@ dependencies = [
[[package]] [[package]]
name = "ghost-slow-clap" name = "ghost-slow-clap"
version = "0.3.15" version = "0.3.14"
dependencies = [ dependencies = [
"frame-benchmarking", "frame-benchmarking",
"frame-support", "frame-support",

View File

@ -17,7 +17,7 @@ homepage.workspace = true
[workspace.package] [workspace.package]
license = "GPL-3.0-only" license = "GPL-3.0-only"
authors = ["571nky", "57r37ch", "f4750"] authors = ["571nky", "57r37ch", "f4750"]
version = "0.7.197" version = "0.7.196"
edition = "2021" edition = "2021"
homepage = "https://ghostchain.io" homepage = "https://ghostchain.io"
repository = "https://git.ghostchain.io/ghostchain/ghost-node" repository = "https://git.ghostchain.io/ghostchain/ghost-node"

View File

@ -437,7 +437,7 @@ sha256sum /etc/ghost/casper.json
You should see: You should see:
``` ```
ad653233c978bfd00c5e4525b17628632bc4319c5f5f4b4dcc2f050ef3c3d145 5aeb6fd5b9b14bdbc1a61600655b5217ded7c1b7cb05bd32929354e88935ae97
``` ```
Create running `ghost-node` service that starts on system boot using `--unit-file` flag. Create running `ghost-node` service that starts on system boot using `--unit-file` flag.

View File

@ -1,6 +1,6 @@
[package] [package]
name = "ghost-slow-clap" name = "ghost-slow-clap"
version = "0.3.15" version = "0.3.14"
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

View File

@ -1162,22 +1162,16 @@ impl<T: Config> Pallet<T> {
session_index: SessionIndex, session_index: SessionIndex,
average_claps: u32, average_claps: u32,
) -> bool { ) -> bool {
if average_claps == 0 {
return true;
}
let claps_in_session = AuthorityInfoInSession::<T>::get(session_index); let claps_in_session = AuthorityInfoInSession::<T>::get(session_index);
match claps_in_session.get(authority_index) { match claps_in_session.get(authority_index) {
Some(clap_in_session) => { Some(clap_in_session) => {
let number_of_claps = &clap_in_session.actions; let number_of_claps = &clap_in_session.actions;
let authority_deviation = if *number_of_claps < average_claps { let authority_deviation = if *number_of_claps < average_claps {
Perbill::from_rational(average_claps - *number_of_claps, average_claps) Perbill::from_rational(*number_of_claps, average_claps)
} else { } else { Perbill::from_rational(average_claps, *number_of_claps) };
Perbill::from_rational(*number_of_claps - average_claps, average_claps)
};
authority_deviation < Perbill::from_percent(T::OffenceThreshold::get()) authority_deviation < Perbill::from_percent(T::OffenceThreshold::get())
}, },
None => false, _ => false,
} }
} }

View File

@ -35,6 +35,7 @@ fn prepare_companion(amount: u64) -> Companion<NetworkIdOf<Runtime>, BalanceOf<R
Companion { Companion {
network_id: 1, network_id: 1,
receiver: H160::from_low_u64_ne(1337), receiver: H160::from_low_u64_ne(1337),
fee: H256::from_low_u64_ne(40_000),
amount: amount, amount: amount,
} }
} }

File diff suppressed because one or more lines are too long