mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-27 00:07:56 +01:00
Undo the earlier simplification changes to getTransactionConfidence, which preserved its original but broken behaviour. Fix the original stream pipeline so that each matching tx input maps to the confidence of the connected parent tx (if any), not the child tx. In this way, it correctly considers parent tx confidences when determining the most recent confidence of all the matching inputs & outputs. Before it was simply feeding a repeating list of identical objects into getMostRecentConfidence, via the erroneous line: .map(o -> tx.getConfidence()) (Also add a missing @Nullable annotation & make getMostRecentConfidence private instead of protected.) Finally, simplify BisqWalletListener.onTransactionConfidenceChanged, by no longer feeding a singleton list into getMostRecentConfidence whose element is already a return value of that method, as that is a no-op. |
||
---|---|---|
.. | ||
main | ||
test |