fix(towercore): permit checker export after handover

- allow one peer context export after commit or abort
- retain denial for unsolicited cross-subscriber reads
This commit is contained in:
TakuyaYagam1 committed 2026-11-29 16:48:50 +03:00
1 parent b16b42b0fa
commit a6ea256570
2 files changed
+9 -1

No files matched your search

+1
View File
@@ -65,6 +65,7 @@ class GuardTests(unittest.TestCase):
module = importlib.import_module("guard")
guard = module.ConnectionGuard()
selector = bytes.fromhex("87481bd9") + b"\0" * 4
guard.observe_server(frame(0x04, [(0x09, b"\x11\x22\x33\x44")]))
self.assertFalse(guard.should_block(frame(0x40, [(0x0B, selector), (0x0C, b"\xe9\x03\0\0")])))
self.assertFalse(guard.should_block(frame(0x42, [(0x15, b"\x01\0\0\0")])))
self.assertFalse(guard.should_block(frame(0x23, [(0x0B, selector)])))