From e375bf48c48620093a76de17b48c5ee1cadee686 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 15 May 2018 18:53:25 +0200 Subject: [PATCH] transaction.py: reserialize scriptSig for incomplete txin On offline imported privkey + online imported address config, the offline wallet was displaying incorrect tx size. --- lib/transaction.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/transaction.py b/lib/transaction.py index 0ae45f798..539f52c8e 100644 --- a/lib/transaction.py +++ b/lib/transaction.py @@ -101,8 +101,6 @@ class BCDataStream(object): except IndexError: raise SerializationError("attempt to read past end of buffer") - return '' - def read_boolean(self): return self.read_bytes(1)[0] != chr(0) def read_int16(self): return self._read_num('