txdb: confirmation.
This commit is contained in:
parent
a62fdb3356
commit
5186435f8f
@ -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());
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user