Skip to content

Commit c2ce9ed

Browse files
committed
Moved blob_type to transactrion_prefix
1 parent cee6e90 commit c2ce9ed

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/cryptonote_core/cryptonote_basic.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ namespace cryptonote
141141
{
142142

143143
public:
144+
enum BLOB_TYPE blob_type;
144145
// tx information
145146
size_t version;
146147
uint64_t unlock_time; //number of block (or time), used as a limitation like: spend this tx not early then block/time
@@ -160,13 +161,12 @@ namespace cryptonote
160161

161162

162163
protected:
163-
transaction_prefix(){}
164+
transaction_prefix() : blob_type(BLOB_TYPE_CRYPTONOTE) {}
164165
};
165166

166167
class transaction: public transaction_prefix
167168
{
168169
public:
169-
enum BLOB_TYPE blob_type;
170170
std::vector<std::vector<crypto::signature> > signatures; //count signatures always the same as inputs count
171171
rct::rctSig rct_signatures;
172172

@@ -235,7 +235,7 @@ namespace cryptonote
235235
};
236236

237237
inline
238-
transaction::transaction() : blob_type(BLOB_TYPE_CRYPTONOTE)
238+
transaction::transaction()
239239
{
240240
set_null();
241241
}

src/cryptonote_core/cryptonote_format_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace cryptonote
1919
void get_transaction_prefix_hash(const transaction_prefix& tx, crypto::hash& h)
2020
{
2121
std::ostringstream s;
22-
if (t.blob_type == BLOB_TYPE_CRYPTONOTE_RYO) s << "ryo-currency";
22+
if (tx.blob_type == BLOB_TYPE_CRYPTONOTE_RYO) s << "ryo-currency";
2323
binary_archive<true> a(s);
2424
::serialization::serialize(a, const_cast<transaction_prefix&>(tx));
2525
crypto::cn_fast_hash(s.str().data(), s.str().size(), h);

0 commit comments

Comments
 (0)