Fix mempool transactions being stripped

fixes #5150
This commit is contained in:
softsimon
2024-06-23 17:16:47 +09:00
parent 06f60df4cf
commit 4dfabaf165

View File

@@ -155,7 +155,7 @@ class RedisCache {
const toAdd = this.cacheQueue.slice(0, this.txFlushLimit);
try {
const msetData = toAdd.map(tx => {
const minified: any = { ...tx };
const minified: any = structuredClone(tx);
delete minified.hex;
for (const vin of minified.vin) {
delete vin.inner_redeemscript_asm;