Skip to content

Commit aa6a63f

Browse files
committed
ARMORY-531
1 parent c7f2af4 commit aa6a63f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

armoryengine/UserAddressUtils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ def truncateStr(theStr, maxLen):
281281
dispStr += ' [%s]' % addrStr
282282
elif len(dispStr) + lastTrunc + 6 <= maxChars:
283283
dispStr += ' [%s...]' % addrStr[:lastTrunc]
284+
elif len(binScript) == 0:
285+
dispStr = 'Unknown Input'
284286
else:
285287
addrStr = script_to_addrStr(script_to_p2sh_script(binScript))
286288
dispStr = 'Non-Standard: %s' % addrStr

armorymodels.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,9 @@ def __init__(self, pytx, txinListFromBDM=None, main=None):
12601260
self.dispTable[-1].append(binary_to_hex(hsh))
12611261
self.dispTable[-1].append(idx)
12621262
self.dispTable[-1].append(blk)
1263-
if ustx is None:
1263+
if len(script) == 0:
1264+
self.dispTable[-1].append("")
1265+
elif ustx is None:
12641266
self.dispTable[-1].append(CPP_TXIN_SCRIPT_NAMES[scrType])
12651267
else:
12661268
isSigned = ustx.ustxInputs[i].evaluateSigningStatus().allSigned

cppForSwig/BlockWriteBatcher.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ StoredTxOut* BlockWriteBatcher::lookForUTXOInMap(const BinaryData& txHash,
130130
void BlockWriteBatcher::resetSshHeader(
131131
StoredScriptHistory& ssh, const BinaryData& uniqKey) const
132132
{
133-
//iface_->getStoredScriptHistorySummary(ssh, uniqKey);
134133
ssh.uniqueKey_ = uniqKey;
135134
ssh.alreadyScannedUpToBlk_ = 0;
136135
ssh.totalTxioCount_ = 0;

0 commit comments

Comments
 (0)