Skip to content

Commit

Permalink
fix deserialize_tx bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gogoex committed Oct 22, 2024
1 parent 7527423 commit a20bf9b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/blsct/external_api/blsct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,9 @@ CMutableTransaction* deserialize_tx(
CMutableTransaction* tx = static_cast<CMutableTransaction*>(
malloc(sizeof(CMutableTransaction))
);
CMutableTransaction empty_tx;
std::memcpy(tx, &empty_tx, sizeof(CMutableTransaction));

DataStream st{};
TransactionSerParams params { .allow_witness = true };
ParamsStream ps {params, st};
Expand Down

0 comments on commit a20bf9b

Please sign in to comment.