Transaction: remove unnecessary Buffer copy
This commit is contained in:
parent
4e04eea436
commit
323f0612d0
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user