Use getblockhashafter command in getWalletRestoreHeight.

This commit is contained in:
tecnovert
2022-01-01 23:30:32 +02:00
parent 1476ad3cec
commit 3ba551c9da
6 changed files with 76 additions and 12 deletions

View File

@@ -1474,7 +1474,7 @@ class BasicSwap(BaseApp):
wrh = session.query(DBKVInt).filter_by(key=key_str).first().value
except Exception:
wrh = ci.getWalletRestoreHeight()
self.log.info('Found restore height for %s', ci.coin_name())
self.log.info('Found restore height for %s, block %d', ci.coin_name(), wrh)
session.add(DBKVInt(
key=key_str,
value=wrh