|
|
b0a69493cd
|
fix benchmarking for slow clap
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-02-26 21:36:14 +03:00 |
|
|
|
bd8d7145af
|
more optimized version for try_offend_validators
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-02-26 14:44:36 +03:00 |
|
|
|
93387218ec
|
make initialise authorities infallable and fix benchmarking
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-24 22:02:26 +03:00 |
|
|
|
6a5029017c
|
use ExternalBlockNumber type everywhere
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-23 19:13:14 +03:00 |
|
|
|
4c79048b49
|
migration to new block commitment data type; tests included
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-23 18:56:05 +03:00 |
|
|
|
24b08a87b1
|
make max commit deviation to be 1/8 of EpochDuration
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-23 16:55:33 +03:00 |
|
|
|
06618069e2
|
avoid commitments check on the beginning of the epoch
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-23 15:17:13 +03:00 |
|
|
|
028afc089f
|
use internal block number as last_update for block commitments
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-22 21:56:55 +03:00 |
|
|
|
c963f7816b
|
slightly optimise try_slow_clap
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-22 13:25:10 +03:00 |
|
|
|
4e1a3de6de
|
prepare benchmarks and update default weights
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-22 11:49:39 +03:00 |
|
|
|
5dd0c73f7a
|
move block commitment check to the on_initialize hook
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-21 17:57:49 +03:00 |
|
|
|
2313bc97ec
|
user agent added to mimic the curl
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-19 19:23:50 +03:00 |
|
|
|
172edd46de
|
additional safety for multi request logic
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-02 18:10:52 +03:00 |
|
|
|
32483cdd40
|
make logs more self-descriptive
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-02-02 15:26:38 +03:00 |
|
|
|
eb9fc16b43
|
tests added for new offchain worker functionality
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-01 15:08:03 +03:00 |
|
|
|
90c82f73cb
|
multiple requests from all endpoints
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-01-31 18:10:40 +03:00 |
|
|
|
ddd3a42564
|
new slashing function for block commitment offence
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-12-09 17:23:08 +03:00 |
|
|
|
dc785e30d9
|
more readable logs and use validators as offence reporters
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-12-09 16:24:41 +03:00 |
|
|
|
3b80a7a94a
|
change slashing logic during block commitments
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-12-09 14:56:24 +03:00 |
|
|
|
a6ce55c1e8
|
rearrange offchain worker execution sequence
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-12-04 18:21:58 +03:00 |
|
|
|
0323c25d08
|
avoid excessive block commitments
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-12-04 17:51:29 +03:00 |
|
|
|
147542f10c
|
correct median; on genesis validators list is empty
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-11-28 00:02:26 +03:00 |
|
|
|
d45cc9bd13
|
add latest from_block to logs
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-11-27 19:22:48 +03:00 |
|
|
|
c9b4325c04
|
rustfmt slow-clap pallet
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-11-27 19:06:18 +03:00 |
|
|
|
911db3b974
|
apply changes from ghost-traits for ExposureListener
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-11-27 19:04:24 +03:00 |
|
|
|
b692959369
|
rustfmt ghost slow clap pallet
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-11-27 17:16:07 +03:00 |
|
|
|
d3c5380ba7
|
updated version of slow clap
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-11-27 17:10:57 +03:00 |
|
|
|
3be36b6db2
|
set ghost emoji as prefix for logging
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-11-21 13:49:40 +03:00 |
|
|
|
6a2b5a34d2
|
applause based on the external expousre
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-11-21 13:46:22 +03:00 |
|
|
|
0bb46482b2
|
offchain worker restructure and block commitments added
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-11-20 03:06:48 +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 |
|
|
|
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 |
|