mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
commit
99c50aa31f
3 changed files with 6 additions and 2 deletions
|
@ -24,6 +24,7 @@ import bitcoin
|
||||||
from bitcoin import *
|
from bitcoin import *
|
||||||
from util import print_error
|
from util import print_error
|
||||||
import time
|
import time
|
||||||
|
import sys
|
||||||
import struct
|
import struct
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
|
@ -45,7 +45,10 @@ class DaemonThread(threading.Thread):
|
||||||
self.running = False
|
self.running = False
|
||||||
|
|
||||||
def print_error(self, *msg):
|
def print_error(self, *msg):
|
||||||
print_error("[%s]"%self.__class__.__name__, *msg)
|
print_error("[%s]" % self.__class__.__name__, *msg)
|
||||||
|
|
||||||
|
def print_msg(self, *msg):
|
||||||
|
print_msg("[%s]" % self.__class__.__name__, *msg)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ class SPV(util.DaemonThread):
|
||||||
|
|
||||||
|
|
||||||
def undo_verifications(self, height):
|
def undo_verifications(self, height):
|
||||||
tx_hashes = selt.wallet.undo_verifications(height)
|
tx_hashes = self.wallet.undo_verifications(height)
|
||||||
for tx_hash in tx_hashes:
|
for tx_hash in tx_hashes:
|
||||||
self.print_error("redoing", tx_hash)
|
self.print_error("redoing", tx_hash)
|
||||||
self.merkle_roots.pop(tx_hash, None)
|
self.merkle_roots.pop(tx_hash, None)
|
||||||
|
|
Loading…
Add table
Reference in a new issue