changeIndex in extended format.

This commit is contained in:
Christopher Jeffrey 2016-03-31 07:04:31 -07:00
parent bb34a80f9d
commit 4f86c86312

View File

@ -1272,7 +1272,7 @@ TX.prototype.toExtended = function toExtended(saveCoins) {
p.writeU32(index);
p.writeU32(this.ts);
p.writeU32(this.ps);
// p.writeU32(changeIndex);
p.writeU32(changeIndex);
if (saveCoins) {
p.writeVarint(this.inputs.length);
@ -1302,7 +1302,7 @@ TX._fromExtended = function _fromExtended(buf, saveCoins) {
tx.index = p.readU32();
tx.ts = p.readU32();
tx.ps = p.readU32();
// tx.changeIndex = p.readU32();
tx.changeIndex = p.readU32();
if (tx.block === constants.nullHash)
tx.block = null;