Compare commits

..

6 Commits

Author SHA1 Message Date
b7f632d3f6
Update README (update sha256sum of genesis)
Signed-off-by: Doctor K <doctor_whoami@ghostchain.io>
2025-02-01 18:57:54 +03:00
055fb760e7 Update README (remove screenshot for sha256 sum of genesis)
Signed-off-by: Doctor K <doctor_whoami@ghostchain.io>
2025-02-01 18:57:38 +03:00
8a0cbb94b4
update chain specs
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-01-30 22:24:30 +03:00
a2afa3fbbc
bump version
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-01-30 22:11:21 +03:00
885c519519
bridge slashing issue fix
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-01-30 22:09:32 +03:00
0d796420f2
fix incorrect definition of good actor
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-01-30 15:12:55 +03:00
7 changed files with 21 additions and 16 deletions

16
Cargo.lock generated
View File

@ -3528,7 +3528,7 @@ dependencies = [
[[package]] [[package]]
name = "ghost-cli" name = "ghost-cli"
version = "0.7.196" version = "0.7.197"
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.196" version = "0.7.197"
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.196" version = "0.7.197"
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.196" version = "0.7.197"
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.196" version = "0.7.197"
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.196" version = "0.7.197"
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.196" version = "0.7.197"
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.14" version = "0.3.15"
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.196" version = "0.7.197"
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:
``` ```
5aeb6fd5b9b14bdbc1a61600655b5217ded7c1b7cb05bd32929354e88935ae97 ad653233c978bfd00c5e4525b17628632bc4319c5f5f4b4dcc2f050ef3c3d145
``` ```
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.14" version = "0.3.15"
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,16 +1162,22 @@ 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(*number_of_claps, average_claps) Perbill::from_rational(average_claps - *number_of_claps, average_claps)
} else { Perbill::from_rational(average_claps, *number_of_claps) }; } else {
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())
}, },
_ => false, None => false,
} }
} }

View File

@ -35,7 +35,6 @@ 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