Skip to content

Commit b9998fc

Browse files
committed
Merge pull request #10330
2b9d216 cryptonote_core: remove Boost serialization for tx_source_entry (jeffro256)
2 parents 1e3aaa4 + 2b9d216 commit b9998fc

1 file changed

Lines changed: 2 additions & 20 deletions

File tree

src/cryptonote_core/cryptonote_tx_utils.h

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2014-2024, The Monero Project
1+
// Copyright (c) 2014-2026, The Monero Project
22
//
33
// All rights reserved.
44
//
@@ -29,9 +29,8 @@
2929
// Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers
3030

3131
#pragma once
32+
3233
#include "cryptonote_basic/cryptonote_format_utils.h"
33-
#include <boost/serialization/vector.hpp>
34-
#include <boost/serialization/utility.hpp>
3534
#include "ringct/rctOps.h"
3635

3736
namespace cryptonote
@@ -151,29 +150,12 @@ namespace cryptonote
151150

152151
}
153152

154-
BOOST_CLASS_VERSION(cryptonote::tx_source_entry, 1)
155153
BOOST_CLASS_VERSION(cryptonote::tx_destination_entry, 2)
156154

157155
namespace boost
158156
{
159157
namespace serialization
160158
{
161-
template <class Archive>
162-
inline void serialize(Archive &a, cryptonote::tx_source_entry &x, const boost::serialization::version_type ver)
163-
{
164-
a & x.outputs;
165-
a & x.real_output;
166-
a & x.real_out_tx_key;
167-
a & x.real_output_in_tx_index;
168-
a & x.amount;
169-
a & x.rct;
170-
a & x.mask;
171-
if (ver < 1)
172-
return;
173-
a & x.multisig_kLRki;
174-
a & x.real_out_additional_tx_keys;
175-
}
176-
177159
template <class Archive>
178160
inline void serialize(Archive& a, cryptonote::tx_destination_entry& x, const boost::serialization::version_type ver)
179161
{

0 commit comments

Comments
 (0)