[bisq-network/bisq-core] Parse opreturn before other outputs (#175)
sqrrm
notifications at github.com
Mon Sep 3 21:28:31 UTC 2018
sqrrm commented on this pull request.
> @@ -115,11 +115,15 @@ public TxParser(PeriodService periodService,
// We keep the temporary opReturn type in the parsingModel object.
checkArgument(!outputs.isEmpty(), "outputs must not be empty");
int lastIndex = outputs.size() - 1;
- txOutputParser.processOpReturnCandidate(outputs.get(lastIndex));
+ int lastNonOpReturnIndex = lastIndex;
+ if (txOutputParser.processOpReturnCandidate(outputs.get(lastIndex))) {
+ txOutputParser.processTxOutput(true, outputs.get(lastIndex), lastIndex);
>From what I see there is only the lockup opreturn processing that really does anything here, and that was the one I wanted to fix. Would be good with more eyes to verify that of course.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq-core/pull/175#discussion_r214756647
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20180903/54f9b44b/attachment.html>
More information about the bisq-github
mailing list