mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-22 23:28:52 +00:00
Merge pull request #4924
0c5dd316
cryptonote: add a set_null for transaction_prefix (moneromooo-monero)
This commit is contained in:
commit
51874e5a40
@ -175,7 +175,15 @@ namespace cryptonote
|
||||
END_SERIALIZE()
|
||||
|
||||
public:
|
||||
transaction_prefix(){}
|
||||
transaction_prefix(){ set_null(); }
|
||||
void set_null()
|
||||
{
|
||||
version = 1;
|
||||
unlock_time = 0;
|
||||
vin.clear();
|
||||
vout.clear();
|
||||
extra.clear();
|
||||
}
|
||||
};
|
||||
|
||||
class transaction: public transaction_prefix
|
||||
@ -302,17 +310,12 @@ namespace cryptonote
|
||||
inline
|
||||
transaction::~transaction()
|
||||
{
|
||||
//set_null();
|
||||
}
|
||||
|
||||
inline
|
||||
void transaction::set_null()
|
||||
{
|
||||
version = 1;
|
||||
unlock_time = 0;
|
||||
vin.clear();
|
||||
vout.clear();
|
||||
extra.clear();
|
||||
transaction_prefix::set_null();
|
||||
signatures.clear();
|
||||
rct_signatures.type = rct::RCTTypeNull;
|
||||
set_hash_valid(false);
|
||||
|
Loading…
Reference in New Issue
Block a user