WIP: poym fix to not update until full txinfo comes
=+ signed=(to-rawtx:bp txhex.act)
=/ tx-match=?
?~ poym %.n
- ~& >> (get-id:txu (decode:txu signed))
- ~& >>> ~(get-txid txb:bwsl u.poym)
=((get-id:txu (decode:txu signed)) ~(get-txid txb:bwsl u.poym))
:_ ?. tx-match state
?~ poym state
~[(send-update [%sign-tx u.poym])]
::
%close-pym
- :: TODO: print out that results of the bools
- ~& >>> "%close-pym: in pend-piym?"
- ~& >>> (~(has by pend-piym) txid.ti.act)
- ~& >>> "%close-pym: in pend-poym?"
- ~& >>> (poym-has-txid txid.ti.act)
?> =(src.bowl our.bowl)
=^ cards state
?. included.ti.act
%succeed-broadcast-tx
?> =(src.bowl our.bowl)
~& > "%succeed-broadcast-tx"
- :_ %= state
- poym ~
+ :_ %_ state
reqs (~(put by reqs) txid.act [%tx-info 0 txid.act])
==
?~ prov ~
