transaction: simplify toBuffer offset management

This commit is contained in:
Daniel Cousens 2016-10-09 22:53:41 +11:00 committed by Daniel Cousens
parent f7b2fdfe60
commit 3bff2c63af
2 changed files with 5 additions and 19 deletions

View file

@ -94,6 +94,7 @@ function writeUInt64LE (buffer, value, offset) {
buffer.writeInt32LE(value & -1, offset)
buffer.writeUInt32LE(Math.floor(value / 0x100000000), offset + 4)
return offset + 8
}
// TODO: remove in 4.0.0?