From a20bf9bb53e222ebb31e994385f9e004d0c3c674 Mon Sep 17 00:00:00 2001 From: gogoex <110195520+gogoex@users.noreply.github.com> Date: Wed, 23 Oct 2024 06:44:01 +0900 Subject: [PATCH] fix deserialize_tx bug --- src/blsct/external_api/blsct.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/blsct/external_api/blsct.cpp b/src/blsct/external_api/blsct.cpp index be8624a5bc9de..ab08097571d0f 100644 --- a/src/blsct/external_api/blsct.cpp +++ b/src/blsct/external_api/blsct.cpp @@ -750,6 +750,9 @@ CMutableTransaction* deserialize_tx( CMutableTransaction* tx = static_cast( malloc(sizeof(CMutableTransaction)) ); + CMutableTransaction empty_tx; + std::memcpy(tx, &empty_tx, sizeof(CMutableTransaction)); + DataStream st{}; TransactionSerParams params { .allow_witness = true }; ParamsStream ps {params, st};