hexresearch / hschain-utxo

UTXO-based contracts for hschain
0 stars 0 forks source link

Lightning script #186

Closed anton-k closed 3 years ago

anton-k commented 3 years ago

Script implements basic prototype for exchange over lightning network. We check that we have all primitives that are required for applications of this type. I've skipped the monitoring of revokation TXs because script getting to complicated. The ability to revoke TXs were covered in simple bidirectional channel script.

Shimuuar commented 3 years ago

Что-то с предложенными правками у меня не заработало. Думаю, что стоит заменить case в Immortal.hs на

      Left se
        | Just ThreadKilled <- fromException se -> return ()

чтобы echoExit корректно работал и печал исключения кроме ThreadKilled

anton-k commented 3 years ago

Что-то с предложенными правками у меня не заработало. Думаю, что стоит заменить case в Immortal.hs на

      Left se
        | Just ThreadKilled <- fromException se -> return ()

чтобы echoExit корректно работал и печал исключения кроме ThreadKilled

Бородой порос тот код. Туда добавил, чтобы warning загасить