Transaction: remove unnecessary Buffer copy
This commit is contained in:
parent
4e04eea436
commit
323f0612d0
1 changed files with 0 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue