Transaction: remove unnecessary Buffer copy

This commit is contained in:
Daniel Cousens 2014-06-12 16:44:09 +10:00
parent 4e04eea436
commit 323f0612d0

View file

@ -133,7 +133,6 @@ Transaction.prototype.toBuffer = function () {
var offset = 0
function writeSlice(slice) {
if (Array.isArray(slice)) slice = new Buffer(slice) // FIXME: Performance: transitionary only
slice.copy(buffer, offset)
offset += slice.length
}