naive: add parse raw tx in aggregator submit action

This commit is contained in:
yosoyubik 2021-05-23 14:59:29 +02:00
parent 766e2ab610
commit 001d58e539

View File

@ -275,8 +275,14 @@
++ part-tx-to-full ++ part-tx-to-full
|= =part-tx |= =part-tx
^- [octs tx:naive] ^- [octs tx:naive]
?+ -.part-tx !! ?+ -.part-tx !!
:: %raw [+.part-tx (decode-tx:naive +.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] :: %don [(encode-tx:naive +.part-tx) +.part-tx]
%ful +.part-tx %ful +.part-tx
== ==