tanglemonitor icon indicating copy to clipboard operation
tanglemonitor copied to clipboard

Feature: Color inconsistent transactions red

Open yet-another-account opened this issue 6 years ago • 5 comments

It would give a better feel as to which transactions were pending and which ones will never confirm.

yet-another-account avatar Mar 11 '18 17:03 yet-another-account

@eukaryote31 Sounds good, how do you check for inconsistent transactions? Check signature and input + output !== 0 ?

cyclux avatar Mar 13 '18 00:03 cyclux

You can use iota.lib.js isPromotable, which calls checkConsistency behind the scenes.

yet-another-account avatar Mar 13 '18 23:03 yet-another-account

Ok, seems like I would have to consult a node for each tail transaction as there is no bulk call with a list of transactions. Have to check if this is managable for high TPS times. But maybe there is also a more performant local option without consulting a node, like checking for signature and input + output !== 0.

cyclux avatar Mar 14 '18 13:03 cyclux

checkConsistency tells you if the transactions indirectly referenced by said transaction are consistent with the confirmed subtangle, not if the transaction is invalid. A more performant local option would be to first search transactions for ones that conflict with the confirmed transactions (i.e reattaches or doublespends) first.

yet-another-account avatar Mar 14 '18 23:03 yet-another-account

If this is achieve-able, I recommend not considering invalid transactions when calculating "Avg. eff. conf.ratio" as well.

sloganking avatar Aug 14 '18 19:08 sloganking