Definition at line 83 of file blockchain_ancestry.cpp.
◆ tx_data_t() [1/2]
◆ tx_data_t() [2/2]
Definition at line 90 of file blockchain_ancestry.cpp.
91 {
92 coinbase = tx.
vin.size() == 1 && tx.
vin[0].type() ==
typeid(cryptonote::txin_gen);
94 {
95 vin.reserve(tx.
vin.size());
96 for (
size_t ring = 0; ring < tx.
vin.size(); ++ring)
97 {
98 if (tx.
vin[ring].type() ==
typeid(cryptonote::txin_to_key))
99 {
100 const cryptonote::txin_to_key &txin = boost::get<cryptonote::txin_to_key>(tx.
vin[ring]);
102 }
103 else
104 {
106 throw std::runtime_error("Bad vin type");
107 }
108 }
109 }
111 for (
size_t out = 0;
out < tx.
vout.size(); ++
out)
112 {
113 if (tx.
vout[out].target.type() ==
typeid(cryptonote::txout_to_key))
114 {
115 const auto &txout = boost::get<cryptonote::txout_to_key>(tx.
vout[out].target);
116 vout.push_back(txout.key);
117 }
118 else
119 {
121 throw std::runtime_error("Bad vout type");
122 }
123 }
124 }
std::vector< txin_v > vin
std::vector< tx_out > vout
std::vector< uint64_t > relative_output_offsets_to_absolute(const std::vector< uint64_t > &off)
crypto::hash get_transaction_hash(const transaction &t)
std::vector< uint64_t > key_offsets
std::vector< std::pair< uint64_t, std::vector< uint64_t > > > vin
std::vector< crypto::public_key > vout
◆ serialize()
template<typename t_archive>
| void tx_data_t::serialize |
( |
t_archive & | a, |
|
|
const unsigned int | ver ) |
|
inline |
Definition at line 126 of file blockchain_ancestry.cpp.
127 {
131 }
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
◆ coinbase
◆ vin
◆ vout
The documentation for this struct was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/blockchain_utilities/blockchain_ancestry.cpp