异常退出各种情况

发送消息崩溃

收到消息处理完毕,消息可能发送也可能没法送出去,不建议使用。
EventSendMediatedTransferAfter 作为中间节点,只处理了这一种情况.
EventSendRevealSecretAfter
EventSendBalanceProofAfter
EventSendSecretRequestAfter
EventSendRefundTransferAfter
EventSendRemoveExpiredHashlockTransferAfter 当移除超时 lock 时发送此消息

收到消息崩溃

ActionInitTargetStateChange 收到mtr,它是接收方
ReceiveSecretRequestStateChange
ReceiveTransferRefundStateChange
ReceiveBalanceProofStateChange
ActionInitMediatorStateChange 收到mtr,它是中间节点
//ActionInitInitiatorStateChange 收到用户发起的交易请求崩溃,没成功 它是发起方
//ReceiveSecretRevealStateChange 收到 secret披露后崩溃
BeforeSendRevealSecret 发送secret之前

收到 ack 崩溃

SecretRequestRecevieAck
SecretRecevieAck #balanceproof
MediatedTransferRecevieAck
RefundTransferRecevieAck
RevealSecretRecevieAck