Commit 9346731
feat: add proximity-based update forwarding
Implements proximity cache to track which neighbors have cached contracts.
UPDATE operations now forward to neighbors who have the contract cached,
not just explicit subscribers. This reduces update propagation failures
in the network.
Key changes:
- New ProximityCacheManager tracks neighbor cache states
- Immediate cache addition announcements
- Batched cache removal announcements to reduce network traffic
- UPDATE operation combines subscribers with proximity-based neighbors
- PUT/GET operations announce cache additions after seeding
Addresses #1848
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 538d0ef commit 9346731
File tree
9 files changed
+677
-6
lines changed- crates/core/src
- node
- network_bridge
- operations
9 files changed
+677
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
258 | 262 | | |
259 | 263 | | |
260 | 264 | | |
| |||
279 | 283 | | |
280 | 284 | | |
281 | 285 | | |
| 286 | + | |
282 | 287 | | |
283 | 288 | | |
284 | 289 | | |
| |||
339 | 344 | | |
340 | 345 | | |
341 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
342 | 352 | | |
343 | 353 | | |
344 | 354 | | |
| |||
418 | 428 | | |
419 | 429 | | |
420 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
421 | 437 | | |
422 | 438 | | |
423 | 439 | | |
| |||
452 | 468 | | |
453 | 469 | | |
454 | 470 | | |
| 471 | + | |
455 | 472 | | |
456 | 473 | | |
457 | 474 | | |
| |||
464 | 481 | | |
465 | 482 | | |
466 | 483 | | |
| 484 | + | |
467 | 485 | | |
468 | 486 | | |
469 | 487 | | |
| |||
476 | 494 | | |
477 | 495 | | |
478 | 496 | | |
| 497 | + | |
479 | 498 | | |
480 | 499 | | |
481 | 500 | | |
| |||
495 | 514 | | |
496 | 515 | | |
497 | 516 | | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
498 | 520 | | |
499 | 521 | | |
500 | 522 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
818 | 842 | | |
819 | 843 | | |
820 | 844 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| 83 | + | |
| 84 | + | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
| |||
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| 134 | + | |
| 135 | + | |
129 | 136 | | |
130 | 137 | | |
131 | 138 | | |
| |||
135 | 142 | | |
136 | 143 | | |
137 | 144 | | |
| 145 | + | |
138 | 146 | | |
139 | 147 | | |
140 | 148 | | |
| |||
0 commit comments