|
|
fd8e52b520
|
adopt BIP-340 for all Secp256k1 networks in EXODUS
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-09-09 03:41:28 +03:00 |
|
|
|
43ec3492ef
|
merkle tree prefixes added
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-08 14:20:56 +03:00 |
|
|
|
3cf96b1820
|
make BFT function name more self-descriptive and align implementation with paper
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-08 14:17:01 +03:00 |
|
|
|
589e88f6eb
|
update default weight for pallets
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-09-06 02:52:29 +03:00 |
|
|
|
3e6192cee7
|
benchmarking for evm bridge out added
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-06 01:35:46 +03:00 |
|
|
|
f2544e3876
|
make governance work over exodus
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-05 23:57:28 +03:00 |
|
|
|
2387a2fe32
|
make exodus to change gatekeeped amount after bridge out
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-05 23:56:24 +03:00 |
|
|
|
5243bd7c3d
|
apply benchmarked weights
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-05 23:45:44 +03:00 |
|
|
|
8ee32ff609
|
make benchmarking dependant on the actual data
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-05 23:42:28 +03:00 |
|
|
|
06af604cc8
|
apply benchmarked weight as default
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-05 23:41:03 +03:00 |
|
|
|
554bc4499f
|
fix governance benchmarking; make id dependant on the proof length
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-05 23:36:27 +03:00 |
|
|
|
c7637d8ce6
|
additional trait for the evm governance
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-05 23:34:33 +03:00 |
|
|
|
4d836ee8ac
|
remove unused pallet
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-05 23:27:58 +03:00 |
|
|
|
e694489f75
|
slightly optimize bridge in/out logic; make variable names more self descriptive; fix benchmarking for governance
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-09-02 02:59:26 +03:00 |
|
|
|
85f1dc9646
|
remove unnecessary code blocks
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-08-31 15:02:05 +03:00 |
|
|
|
e7a191d5e7
|
remove annoying warning
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-08-31 14:59:56 +03:00 |
|
|
|
c173734ea8
|
align governance preclaims with python script
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-08-31 14:58:52 +03:00 |
|
|
|
7b050f1363
|
fix tests for exodus pallet
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-08-31 14:57:06 +03:00 |
|
|
|
d83ee59508
|
let the EXODUS begin...
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-08-29 14:48:50 +03:00 |
|
|
|
0e228d890d
|
rustfmt changes
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-06-18 14:41:58 +03:00 |
|
|
|
c112ad22c2
|
apply eviction logic during the offence preparation
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-06-18 14:38:34 +03:00 |
|
|
|
0dd27d6429
|
eviction trait added
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-06-18 14:36:51 +03:00 |
|
|
|
8252107e96
|
make multiplication to round up during slash fraction calculation
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-06-10 11:14:06 +03:00 |
|
|
|
e7b8cd46e1
|
add transaction hash to the unique identifier of the bridging tx
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-03-03 22:18:32 +03:00 |
|
|
|
713cbdfdc1
|
latest benhcmarking setup for casper runtime
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-03-01 13:26:26 +03:00 |
|
|
|
5dcc23c996
|
update pallets weights based on the real benchmarkings
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-03-01 12:39:44 +03:00 |
|
|
|
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 |
|
|
|
ba7d2a8222
|
additional function for exposure trait
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2026-02-26 14:42:39 +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 |
|
|
|
f082dfc4e0
|
ability to iterate over network ids only and get networks lenght without storage read
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-22 21:54:51 +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 |
|
|
|
63c03ad6ce
|
extend trait with network existence check
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-22 13:14:58 +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 |
|
|
|
03262539aa
|
adapt trait; add extra test; fix benchmarking
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-21 17:55:26 +03:00 |
|
|
|
f524b01b03
|
make function name more obvious
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-21 17:52:42 +03:00 |
|
|
|
f99eee2e1a
|
remove nullification functionality from trait
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-21 14:17:35 +03:00 |
|
|
|
d3cc3ac1b3
|
remove unnecessary storage entry in pallet
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-21 14:15:51 +03:00 |
|
|
|
7a7712df0b
|
replace custom muldiv with multiply_by_rational_with_rounding from substrate
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-21 12:54:29 +03:00 |
|
|
|
cce2910cf8
|
make networks pallet to be indexed storage map; migrations included
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-20 17:15:53 +03:00 |
|
|
|
5b5e53e6fd
|
update traits for the network handler
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-02-20 16:09:54 +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 |
|
|
|
b282ebad62
|
rustfmt the whole project
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2026-01-31 18:14:26 +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 |
|
|
|
5b26d4ce28
|
make gatekeeped amount part of the genesis
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-11-28 16:56:46 +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 |
|
|
|
fbc58e350b
|
conversion function to AccountId added
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-11-27 19:03:13 +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 |
|
|
|
16b933f3ba
|
rustfmt ghost traits pallet
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-11-27 17:15:30 +03:00 |
|
|
|
ad3de30be3
|
rustfmt ghost networks pallet
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-11-27 17:15:03 +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 |
|
|
|
c3ef933c20
|
extend networks pallet with avg_block_speed
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-11-27 17:10:23 +03:00 |
|
|
|
954ae66294
|
bump traits package version
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-11-27 17:09:10 +03:00 |
|
|
|
a504d8eb87
|
trait to get exposure from external pallets such as staking
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-11-27 17:08:16 +03:00 |
|
|
|
eebcc18018
|
simple bitmap implementation
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-11-27 17:06:50 +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 |
|
|
|
d76646c191
|
remove unused structs to avoid warning during compilation
Signed-off-by: Uncle Stinky <uncle.stinky@ghostchain.io>
|
2025-11-18 16:01:29 +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 |
|
|
|
60b887f812
|
make MulDiv to be used with any 32 bit unsigned
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-08-10 22:07:53 +03:00 |
|
|
|
f7f25bd087
|
nullify bridged imbalance on each era reward payout
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-08-10 16:51:04 +03:00 |
|
|
|
e2c75ca558
|
implement muldiv without overflow and underflow
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
|
2025-08-10 16:41:14 +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 |
|