From 382f6481356aee3dba948f515b35e8c3df4a4f4d Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Fri, 12 Apr 2024 07:41:44 -0500 Subject: [PATCH] GH-3 Fix use of packed_transaction_ptr over shared_ptr --- plugins/net_plugin/net_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index e574153967..b02740e6e1 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -3189,7 +3189,8 @@ namespace eosio { auto ds = pending_message_buffer.create_datastream(); unsigned_int which{}; fc::raw::unpack( ds, which ); - packed_transaction_ptr ptr = std::make_shared(); + // shared_ptr needed here because packed_transaction_ptr is shared_ptr + std::shared_ptr ptr = std::make_shared(); fc::raw::unpack( ds, *ptr ); if( trx_in_progress_sz > def_max_trx_in_progress_size) { char reason[72];