Commit ed8a132d authored by Sebastian Stammler's avatar Sebastian Stammler

op-batcher: Fix channelManager.nextTxData, always prepend 0

parent f529e56f
......@@ -172,12 +172,10 @@ func (s *channelManager) nextTxData() ([]byte, txID, error) {
}
id, data := s.pendingChannel.NextFrame()
if id.frameNumber == 0 {
// prepend version byte for first frame
// prepend version byte for first frame of transaction
// TODO: more memory efficient solution; shouldn't be responsibility of
// channelBuilder though.
data = append([]byte{0}, data...)
}
s.log.Trace("returning next tx data", "id", id)
s.pendingTransactions[id] = data
......
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