9f9dd20e46
make starter script usable for network bootstrap
...
update default chain spec for casper network
legacy endowments and gatekeeped amount for networks
update weights for the latest runtime
make gatekeeped amount part of the genesis
correct median; on genesis validators list is empty
add latest from_block to logs
update chain specs for local testing
update casper runtime based on ghost pallets
rustfmt slow-clap pallet
apply changes from ghost-traits for ExposureListener
conversion function to AccountId added
rustfmt ghost slow clap pallet
rustfmt ghost traits pallet
rustfmt ghost networks pallet
update casper runtime in accordance with new functionality. not final
updated version of slow clap
extend networks pallet with avg_block_speed
bump traits package version
trait to get exposure from external pallets such as staking
simple bitmap implementation
set ghost emoji as prefix for logging
applause based on the external expousre
offchain worker restructure and block commitments added
Signed-off-by: Doctor K <doctor_whoami@ghostchain.io>
2025-11-28 23:01:12 +03:00
94d28f254f
update offchain worker logic
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-18 16:00:17 +03:00
55a77cd3d4
introduce black swan event e.g. disable everybody
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-12 19:03:58 +03:00
092679eb0c
disable only claps during offchain worker but not the block gathering
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-10 20:54:37 +03:00
64de0027bf
align self-applause logic and disable offchain worker if authority index is disabled
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-09 15:29:50 +03:00
a3ed395689
take disabled from the next session and rustfmt pallet code
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-08 14:02:04 +03:00
7a710ec9cb
check if validator disabled during the validate_unsigned and small typo fixes
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-08 13:48:14 +03:00
cc141105bb
propagate disabled authorities to upcoming sessions in era
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-08 13:38:15 +03:00
18241ea504
update weights for the slow clap
...
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-11-06 14:59:27 +03:00
6acec08fa5
increase storage version for the pallet
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-06 14:32:04 +03:00
d6ecdcd468
correct benchmarking of self applause and remove of unnecessary storage during tests
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-05 22:13:28 +03:00
decf6665df
make slow-clap tests work again based on new functionality, new tests added too
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-05 20:55:04 +03:00
ebae9fadbe
fixes for self_applause function
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-05 20:52:00 +03:00
c872eca8ac
back look during the slashing
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-05 15:55:37 +03:00
eb181c7f44
fixes for the inconsistency of the slow claps
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-11-04 17:43:36 +03:00
7edc8935b6
optimize offenders gathering with a single pass over the data
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-08-27 15:31:32 +03:00
46aa18aafe
implement cross session claim via self_applause
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-08-27 14:41:46 +03:00
f245879925
force parameters for RewardCurve to be a default balance type, which is u64
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-08-14 16:55:46 +03:00
1c4c517728
avoiding back in time travel
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-07-31 15:30:28 +03:00
b969081cbf
make sure that disabled validator will not be checked with is_good_actor
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-07-31 14:21:55 +03:00
9bdb7b5d5c
add an early check for the disabled validator
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-07-31 14:02:14 +03:00
c4b16805f7
fix calculation of median, include special case when there're no claps
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-07-31 13:56:05 +03:00
7216f1d82b
rustfmt ghost slow clap and fix typos
...
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-07-29 14:58:23 +03:00
1d826fbf7e
rotate endpoints on each offchain worker exection
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-07-29 12:42:36 +03:00
47f7ae3847
separate evm structs, deserialisation functions and main logic
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-25 19:28:59 +03:00
591cce1fb1
rustfmt the ghost-slow-clap pallet
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-25 18:20:10 +03:00
8464da831f
rate limit for the rpc endpoint based on network_id, storage guard lock for the current network_id and other minor improvements
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-25 18:09:29 +03:00
43f72ec842
update weights and add rate_limit_delay for slow claps
...
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-06-19 22:35:51 +03:00
818f41d05e
update slow claps because of finality delay non-option type
...
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-06-19 15:00:30 +03:00
d8e934a98e
ability to avoid too big deviations between from_block and to_block
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-19 14:31:33 +03:00
39a6192d28
avoid re-using of to_block during rotation of block_range
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-18 17:20:25 +03:00
6100e79ebf
make clap regardless of fail during applause
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-18 17:03:09 +03:00
417de5a7b2
clear storage based on provided history depth
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-18 13:47:13 +03:00
b5845924dc
fixes for the default weights on slow-clap package
...
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-06-17 20:56:32 +03:00
f28e57cf8e
add files with weights for the slow-clap, benchmarked according to the casper reference machine
...
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-06-17 20:44:44 +03:00
3040dfb775
make benchmark work, issue with authorities fixed
...
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-06-17 20:34:42 +03:00
66fa8409fa
additional tests for the pallet
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-17 13:50:38 +03:00
5beb22f116
avoid errors from minting sub-existential balance
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-13 16:42:14 +03:00
e73f3855fd
authorities stored based on the session hash map
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-11 22:56:48 +03:00
a00eec9bb9
tests for clap and applause events added
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-04 16:33:03 +03:00
2c2df5a607
ability to do self applause if claps received
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-04 15:44:53 +03:00
573e57dfb4
new tests based on new ghost-network functinality
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-03 20:41:51 +03:00
9cb7f3c782
replacing the average claps in session with median to determine a harmful authority
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-03 19:38:07 +03:00
04a63e234d
tests updated and small tweaks of the lib
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-06-02 19:20:14 +03:00
2da07d7b24
chmod 644 Cargo.toml for ghost-slow-claps
...
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2025-05-31 14:55:30 +03:00
fa2cb811a8
update for slow-claps: remove companions, updgrade block range storage, new way of commission accumulation
...
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
2025-05-31 14:30:15 +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
66719626bb
inital commit, which is clearly not initial
...
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
2024-10-03 15:38:52 +03:00