From 0503e809d5183e40d807e39755c58e627c3c23c9 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 1 Apr 2015 07:57:59 +0200 Subject: [PATCH] fix #1121: tx.update --- lib/transaction.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/transaction.py b/lib/transaction.py index 34857d54b..20bcef79d 100644 --- a/lib/transaction.py +++ b/lib/transaction.py @@ -485,6 +485,10 @@ class Transaction: def __init__(self, raw): self.raw = raw + def update(self, raw): + self.raw = raw + self.deserialize() + def deserialize(self): d = deserialize(self.raw) self.inputs = d['inputs']