Merge pull request #5194 from mempool/simon/fix-stripped-mempool-transactions

Fix mempool transactions being stripped
This commit is contained in:
softsimon 2024-06-23 17:58:46 +09:00 committed by GitHub
commit 6936b97ba6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;