From b78f340cfe5a58c6a3901ba3bf187e6373104438 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 15 Jul 2021 22:27:23 -0700 Subject: [PATCH] bugfix --- appPublic/dataencoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appPublic/dataencoder.py b/appPublic/dataencoder.py index fe8773e..9384378 100644 --- a/appPublic/dataencoder.py +++ b/appPublic/dataencoder.py @@ -125,7 +125,7 @@ class DataEncoder: org_data = data pk = self.get_peer_pubkey(peer_id) f = data[:18] - while f[-1] == b'\x00' and len(f) > 0: + while f[-1] == 0 and len(f) > 0: f = f[:-1] f = f.decode('utf-8') data = data[18:]