File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments