Commit 6cad853
committed
fix: improve BFT consensus stability, update genesis config and faucet
consensus / p2p (node.rs, unified_p2p.rs):
- BFT timeout votes now keyed by macroblock index (height/90) instead of
exact microblock height so nodes at different heights within the same
macroblock can form quorum and issue a TimeoutCertificate
- Track consecutive sync failures per height (SYNC_FAIL_COUNT/SYNC_FAIL_FIRST_TS);
after 3 failures force QUIC reconnect via reconnect_all_bootstrap_peers(),
after 600 s stuck trigger self-restart via process::exit(1)
- Add reconnect_all_bootstrap_peers() to UnifiedP2P: flushes idle QUIC
connections, removes stale peer entries and re-dials all bootstrap nodes
- Align TIMEOUT_VOTES / TIMEOUT_CERTIFICATES / TIMEOUT_VOTED_HEIGHTS cleanup
to use macroblock index keys (retain last 20 macroblocks)
genesis node addresses (6 files):
- Update all 5 genesis node wallet addresses in genesis_constants.rs,
fork_resolution.rs, config.py, genesis_whitelist.py,
onedev_phase_handler.py and WalletScreen.js
faucet / explorer (3 files):
- Replace unreliable requestAirdrop with SystemProgram.transfer from faucet
wallet in claim/route.ts
- Add parallel dual-token claim (1500 1DEV + 0.001 SOL) in testnet/page.tsx
and token-faucet.tsx with unified success modal showing both tx hashes1 parent ce3251b commit 6cad853
11 files changed
Lines changed: 370 additions & 172 deletions
File tree
- applications
- qnet-explorer/frontend/src
- app
- api/faucet/claim
- testnet
- components/faucet
- qnet-mobile/src/screens
- core
- qnet-consensus/src
- qnet-core/src
- development/qnet-integration/src
- infrastructure/qnet-node/src/economics
Lines changed: 64 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
202 | 201 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | 202 | | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
218 | 209 | | |
219 | 210 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
223 | 230 | | |
224 | | - | |
225 | | - | |
226 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
227 | 268 | | |
228 | 269 | | |
229 | 270 | | |
| |||
276 | 317 | | |
277 | 318 | | |
278 | 319 | | |
279 | | - | |
| 320 | + | |
280 | 321 | | |
281 | 322 | | |
282 | 323 | | |
| |||
Lines changed: 61 additions & 45 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 33 | + | |
47 | 34 | | |
48 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | | - | |
55 | | - | |
| 59 | + | |
| 60 | + | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
59 | | - | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | | - | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
185 | | - | |
| 189 | + | |
186 | 190 | | |
187 | | - | |
| 191 | + | |
188 | 192 | | |
189 | | - | |
| 193 | + | |
190 | 194 | | |
191 | 195 | | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
195 | 221 | | |
196 | 222 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
205 | 226 | | |
206 | | - | |
207 | | - | |
| 227 | + | |
| 228 | + | |
208 | 229 | | |
209 | 230 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
| 231 | + | |
217 | 232 | | |
218 | 233 | | |
219 | 234 | | |
220 | 235 | | |
221 | 236 | | |
222 | | - | |
| 237 | + | |
223 | 238 | | |
224 | 239 | | |
225 | 240 | | |
226 | | - | |
| 241 | + | |
| 242 | + | |
227 | 243 | | |
228 | 244 | | |
229 | 245 | | |
| |||
0 commit comments