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

@ -276,7 +276,13 @@
|= =part-tx
^- [octs tx:naive]
?+ -.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]
%ful +.part-tx
==