feat: safely merge partial persistent updates and update hide ui script

This commit is contained in:
CAtlas0784 committed 2026-10-17 01:05:58 +07:00
1 parent 332171cafb
commit 83fa8c7d44
3 files changed
+115 -56

No files matched your search

+6 -2
View File
@@ -138,8 +138,12 @@ func TestGatewayHandshakeAndLogin(t *testing.T) {
if cmdID != 4112 {
t.Fatalf("unexpected GetUnreleasedBlockInfoScRsp id: got %d want 4112", cmdID)
}
if len(body) != 2 || body[0] != 0x70 || body[1] != 0x00 {
t.Fatalf("unexpected UnreleasedBlockInfo body: %x", body)
blockRsp := &goproto.GetUnreleasedBlockInfoScRsp{}
if err := proto.Unmarshal(body, blockRsp); err != nil {
t.Fatalf("unmarshal GetUnreleasedBlockInfo: %v", err)
}
if blockRsp.Retcode != 0 {
t.Fatalf("unexpected UnreleasedBlockInfo retcode: %d", blockRsp.Retcode)
}
t.Log("GetUnreleasedBlockInfo verified: 4190 -> 4112 retcode 0")