Commit c7180f6
committed
fix: use real block height for startup sync and non-blocking background_tick
- Startup sync was hardcoded to block_height=120, epoch=0. Now reads
the actual bittensor_block from state_manager so WASM challenges can
correctly detect block_height % N == 0 for periodic GitHub refresh.
- background_tick now uses try_lock instead of lock on the persistent
WASM instance, skipping gracefully when sync() holds the mutex.
This prevents background_tick from delaying higher-priority sync calls.1 parent 61ee724 commit c7180f6
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
| 1118 | + | |
| 1119 | + | |
1118 | 1120 | | |
1119 | 1121 | | |
1120 | 1122 | | |
1121 | 1123 | | |
1122 | 1124 | | |
1123 | 1125 | | |
1124 | | - | |
| 1126 | + | |
1125 | 1127 | | |
1126 | 1128 | | |
1127 | 1129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1507 | 1507 | | |
1508 | 1508 | | |
1509 | 1509 | | |
| 1510 | + | |
1510 | 1511 | | |
1511 | 1512 | | |
1512 | 1513 | | |
1513 | 1514 | | |
1514 | 1515 | | |
1515 | 1516 | | |
1516 | 1517 | | |
1517 | | - | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
1518 | 1525 | | |
1519 | 1526 | | |
1520 | 1527 | | |
| |||
0 commit comments