From 001d58e539f3f54997ffc8ee123ee743daa7f694 Mon Sep 17 00:00:00 2001 From: yosoyubik Date: Sun, 23 May 2021 14:59:29 +0200 Subject: [PATCH] naive: add parse raw tx in aggregator submit action --- pkg/arvo/app/aggregator.hoon | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkg/arvo/app/aggregator.hoon b/pkg/arvo/app/aggregator.hoon index cc062006b..e093d779c 100644 --- a/pkg/arvo/app/aggregator.hoon +++ b/pkg/arvo/app/aggregator.hoon @@ -275,8 +275,14 @@ ++ part-tx-to-full |= =part-tx ^- [octs tx:naive] - ?+ -.part-tx !! - :: %raw [+.part-tx (decode-tx:naive +.part-tx)] + ?+ -.part-tx !! + %raw + ?~ batch=(parse-raw-tx:naive q.raw.part-tx) + ~& %parse-failed + :: TODO: maybe return a unit if parsing fails? + :: + !! + [raw tx]:-.u.batch :: %don [(encode-tx:naive +.part-tx) +.part-tx] %ful +.part-tx ==