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};