Commit 9024cf6a authored by Matthew Slipper's avatar Matthew Slipper Committed by GitHub

Merge pull request #5050 from s7v7nislands/fix_parse_frame_error

op-batcher/batcher/channel_manager: when send tx failed, the frame should strip the version
parents 83481b2c 75db4d75
...@@ -87,7 +87,7 @@ func (s *channelManager) Clear() { ...@@ -87,7 +87,7 @@ func (s *channelManager) Clear() {
func (s *channelManager) TxFailed(id txID) { func (s *channelManager) TxFailed(id txID) {
if data, ok := s.pendingTransactions[id]; ok { if data, ok := s.pendingTransactions[id]; ok {
s.log.Trace("marked transaction as failed", "id", id) s.log.Trace("marked transaction as failed", "id", id)
s.pendingChannel.PushFrame(id, data) s.pendingChannel.PushFrame(id, data[1:]) // strip the version byte
delete(s.pendingTransactions, id) delete(s.pendingTransactions, id)
} else { } else {
s.log.Warn("unknown transaction marked as failed", "id", id) s.log.Warn("unknown transaction marked as failed", "id", id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment