From 5186435f8f825d343551068bb30d8815f7673b21 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 16 Oct 2016 09:44:35 -0700 Subject: [PATCH] txdb: confirmation. --- lib/wallet/txdb.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/wallet/txdb.js b/lib/wallet/txdb.js index 7123d7ab..f692c4c6 100644 --- a/lib/wallet/txdb.js +++ b/lib/wallet/txdb.js @@ -1013,8 +1013,12 @@ TXDB.prototype.confirm = co(function* confirm(tx, info) { if (tx.height === -1) return true; - // Save the original received time. - tx.ps = existing.ps; + // Inject block properties. + existing.ts = tx.ts; + existing.height = tx.height; + existing.index = tx.index; + existing.block = tx.block; + tx = existing; this.put(layout.t(hash), tx.toExtended());