Commit a889247
Adds bounded, FIFO multi-request support for delegation scheduling in
* implement multiple unbond requests
* adapt benchmarks
* end2end tests
* cargo fmt
* biome
* fix rust tests compilation
* fix migration warning
* fmt
* fix precompile tests
* biome
* test migration
* biome
* add MaxScheduledRequestsPerDelegator
* benchmarks: pay_one_collator_reward_best: remove z param
* fix rust tests
* Optimization applied in get_rewardable_delegators
Replaced the two-pass logic over scheduled_requests (one .any() for revokes, one loop to sum decreases) with a single-pass fold.
* fix migration test
* biome
* multi-block migration
* remove duplicate dep
* review suggestion 1
* review suggestions 2
* review suggestions 3
* biome
* fix migration
* improve migration tests
* rustfmt
* migration test: ignore previous multi-block migrations
* increase timeout for chopstick migration tests
* biome
* increase chopstick tests timeout
* test migration: check state only after the multi-block migration ended
* multi-migrations prevent transfer right after the upgrade
* change test timeout
* transfer need to wait multi-migrations
* test upgrade chain: wait one block at a time
* migration: migrate up to 8 collators per step
* test migration: read less state for moonbeam
* upgrade tests need long timeout to complete migrations
* remove field delegator from ScheduledRequest type
* comment why we can ignore try_push error
* lazy-loading tests: multi-block migrations needs more time and blocks
* fix staking benchmarks
* fix precompile tests
* fix proof size cost for precompile delegation_request_is_pending
* improve benchmark check for pay_one_collator_reward_best
* fix compilation
* fix end2end tests that still rely on removed "delegator" field
* fix lazy loading test
* fix end2end tests that still rely on removed "delegator" field
* skip upgrade test C01 on moonbeam
* skip upgrade test C01 on moonbeam
* Update pallets/parachain-staking/src/delegation_requests.rs
Co-authored-by: Rodrigo Quelhas <[email protected]>
* Update precompiles/parachain-staking/src/lib.rs
Co-authored-by: Rodrigo Quelhas <[email protected]>
* remove unused migrations
* fix rust compilation
---------
Co-authored-by: Rodrigo Quelhas <[email protected]>pallet-parachain-staking (#3550)1 parent cbc92dc commit a889247
File tree
46 files changed
+1487
-325
lines changed- .github/workflows
- pallets/parachain-staking
- src
- precompiles/parachain-staking/src
- runtime
- common
- src
- moonbase/src
- weights
- moonbeam/src
- weights
- moonriver/src
- weights
- test/suites
- chopsticks
- dev/moonbase
- test-precompile
- test-staking
- lazy-loading/common
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
46 files changed
+1487
-325
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
843 | 843 | | |
844 | 844 | | |
845 | 845 | | |
846 | | - | |
| 846 | + | |
847 | 847 | | |
848 | 848 | | |
849 | 849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
906 | 906 | | |
907 | 907 | | |
908 | 908 | | |
| 909 | + | |
| 910 | + | |
909 | 911 | | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
| 912 | + | |
| 913 | + | |
916 | 914 | | |
917 | 915 | | |
918 | | - | |
| 916 | + | |
919 | 917 | | |
920 | 918 | | |
921 | 919 | | |
| |||
1162 | 1160 | | |
1163 | 1161 | | |
1164 | 1162 | | |
| 1163 | + | |
| 1164 | + | |
1165 | 1165 | | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
| 1166 | + | |
| 1167 | + | |
1172 | 1168 | | |
1173 | 1169 | | |
1174 | | - | |
| 1170 | + | |
1175 | 1171 | | |
1176 | 1172 | | |
1177 | 1173 | | |
| |||
1540 | 1536 | | |
1541 | 1537 | | |
1542 | 1538 | | |
1543 | | - | |
1544 | | - | |
1545 | | - | |
| 1539 | + | |
| 1540 | + | |
1546 | 1541 | | |
1547 | 1542 | | |
1548 | 1543 | | |
| |||
1706 | 1701 | | |
1707 | 1702 | | |
1708 | 1703 | | |
1709 | | - | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
1717 | 1704 | | |
1718 | 1705 | | |
1719 | 1706 | | |
| |||
1753 | 1740 | | |
1754 | 1741 | | |
1755 | 1742 | | |
1756 | | - | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
1761 | | - | |
1762 | | - | |
1763 | 1743 | | |
1764 | 1744 | | |
1765 | 1745 | | |
| |||
1793 | 1773 | | |
1794 | 1774 | | |
1795 | 1775 | | |
| 1776 | + | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1796 | 1780 | | |
1797 | 1781 | | |
1798 | 1782 | | |
| |||
1801 | 1785 | | |
1802 | 1786 | | |
1803 | 1787 | | |
1804 | | - | |
| 1788 | + | |
1805 | 1789 | | |
1806 | 1790 | | |
1807 | 1791 | | |
| |||
1810 | 1794 | | |
1811 | 1795 | | |
1812 | 1796 | | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
1813 | 1801 | | |
1814 | 1802 | | |
1815 | | - | |
1816 | | - | |
| 1803 | + | |
| 1804 | + | |
1817 | 1805 | | |
1818 | 1806 | | |
| 1807 | + | |
1819 | 1808 | | |
1820 | 1809 | | |
1821 | 1810 | | |
| |||
0 commit comments