txdb: confirmation.

This commit is contained in:
Christopher Jeffrey 2016-10-16 09:44:35 -07:00
parent a62fdb3356
commit 5186435f8f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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());