![]() |
Raven Core
3.0.0
P2P Digital Currency
|
The basic transaction that is broadcasted on the network and contained in blocks. More...
#include <transaction.h>
Public Member Functions | |
| CTransaction () | |
| Construct a CTransaction that qualifies as IsNull() More... | |
| CTransaction (const CMutableTransaction &tx) | |
| Convert a CMutableTransaction into a CTransaction. More... | |
| CTransaction (CMutableTransaction &&tx) | |
| template<typename Stream > | |
| void | Serialize (Stream &s) const |
| template<typename Stream > | |
| CTransaction (deserialize_type, Stream &s) | |
| This deserializing constructor is provided instead of an Unserialize method. More... | |
| bool | IsNull () const |
| const uint256 & | GetHash () const |
| uint256 | GetWitnessHash () const |
| CAmount | GetValueOut () const |
| bool | IsNewAsset () const |
| RVN START. More... | |
| bool | VerifyNewAsset (std::string &strError) const |
| To be called on CTransactions where IsNewAsset returns true. More... | |
| bool | IsNewUniqueAsset () const |
| Make sure to call VerifyNewUniqueAsset if this call returns true. More... | |
| bool | VerifyNewUniqueAsset (std::string &strError) const |
| Call this function after IsNewUniqueAsset. More... | |
| bool | IsReissueAsset () const |
| bool | VerifyReissueAsset (std::string &strError) const |
| To be called on CTransactions where IsReissueAsset returns true. More... | |
| bool | IsNewMsgChannelAsset () const |
| Make sure to call VerifyNewUniqueAsset if this call returns true. More... | |
| bool | VerifyNewMsgChannelAsset (std::string &strError) const |
| To be called on CTransactions where IsNewAsset returns true. More... | |
| bool | IsNewQualifierAsset () const |
| Make sure to call VerifyNewQualifierAsset if this call returns true. More... | |
| bool | VerifyNewQualfierAsset (std::string &strError) const |
| To be called on CTransactions where IsNewQualifierAsset returns true. More... | |
| bool | IsNewRestrictedAsset () const |
| Make sure to call VerifyNewAsset if this call returns true. More... | |
| bool | VerifyNewRestrictedAsset (std::string &strError) const |
| To be called on CTransactions where IsNewRestrictedAsset returns true. More... | |
| bool | CheckAddingTagBurnFee (const int &count) const |
| bool | GetVerifierStringFromTx (CNullAssetTxVerifierString &verifier, std::string &strError) const |
| bool | GetVerifierStringFromTx (CNullAssetTxVerifierString &verifier, std::string &strError, bool &fNotFound) const |
| unsigned int | GetTotalSize () const |
| RVN END. More... | |
| bool | IsCoinBase () const |
| std::string | ToString () const |
| bool | HasWitness () const |
Public Attributes | |
| const std::vector< CTxIn > | vin |
| const std::vector< CTxOut > | vout |
| const int32_t | nVersion |
| const uint32_t | nLockTime |
Static Public Attributes | |
| static const int32_t | CURRENT_VERSION =2 |
| static const int32_t | MAX_STANDARD_VERSION =2 |
Private Member Functions | |
| uint256 | ComputeHash () const |
Private Attributes | |
| const uint256 | hash |
| Memory only. More... | |
Friends | |
| bool | operator== (const CTransaction &a, const CTransaction &b) |
| bool | operator!= (const CTransaction &a, const CTransaction &b) |
The basic transaction that is broadcasted on the network and contained in blocks.
A transaction can contain multiple inputs and outputs.
Definition at line 270 of file transaction.h.
| CTransaction::CTransaction | ( | ) |
Construct a CTransaction that qualifies as IsNull()
Definition at line 88 of file transaction.cpp.
| CTransaction::CTransaction | ( | const CMutableTransaction & | tx | ) |
Convert a CMutableTransaction into a CTransaction.
Definition at line 89 of file transaction.cpp.
| CTransaction::CTransaction | ( | CMutableTransaction && | tx | ) |
Definition at line 90 of file transaction.cpp.
|
inline |
This deserializing constructor is provided instead of an Unserialize method.
Unserialize is not possible, since it would require overwriting const fields.
Definition at line 314 of file transaction.h.
| bool CTransaction::CheckAddingTagBurnFee | ( | const int & | count | ) | const |
Definition at line 1474 of file assets.cpp.
|
private |
|
inline |
| unsigned int CTransaction::GetTotalSize | ( | ) | const |
RVN END.
Get the total transaction size in bytes, including witness data. "Total Size" defined in BIP141 and BIP144.
Definition at line 103 of file transaction.cpp.
| CAmount CTransaction::GetValueOut | ( | ) | const |
| bool CTransaction::GetVerifierStringFromTx | ( | CNullAssetTxVerifierString & | verifier, |
| std::string & | strError | ||
| ) | const |
Definition at line 1378 of file assets.cpp.
| bool CTransaction::GetVerifierStringFromTx | ( | CNullAssetTxVerifierString & | verifier, |
| std::string & | strError, | ||
| bool & | fNotFound | ||
| ) | const |
Definition at line 1347 of file assets.cpp.
| uint256 CTransaction::GetWitnessHash | ( | ) | const |
Definition at line 79 of file transaction.cpp.
|
inline |
|
inline |
| bool CTransaction::IsNewAsset | ( | ) | const |
RVN START.
Call VerifyNewAsset if this function returns true.
Definition at line 881 of file assets.cpp.
| bool CTransaction::IsNewMsgChannelAsset | ( | ) | const |
Make sure to call VerifyNewUniqueAsset if this call returns true.
Definition at line 1077 of file assets.cpp.
| bool CTransaction::IsNewQualifierAsset | ( | ) | const |
Make sure to call VerifyNewQualifierAsset if this call returns true.
Definition at line 1164 of file assets.cpp.
| bool CTransaction::IsNewRestrictedAsset | ( | ) | const |
Make sure to call VerifyNewAsset if this call returns true.
Definition at line 1253 of file assets.cpp.
| bool CTransaction::IsNewUniqueAsset | ( | ) | const |
Make sure to call VerifyNewUniqueAsset if this call returns true.
Definition at line 900 of file assets.cpp.
|
inline |
Definition at line 316 of file transaction.h.
| bool CTransaction::IsReissueAsset | ( | ) | const |
Definition at line 1384 of file assets.cpp.
|
inline |
| std::string CTransaction::ToString | ( | ) | const |
| bool CTransaction::VerifyNewAsset | ( | std::string & | strError | ) | const |
To be called on CTransactions where IsNewAsset returns true.
Definition at line 1006 of file assets.cpp.
| bool CTransaction::VerifyNewMsgChannelAsset | ( | std::string & | strError | ) | const |
To be called on CTransactions where IsNewAsset returns true.
Definition at line 1090 of file assets.cpp.
| bool CTransaction::VerifyNewQualfierAsset | ( | std::string & | strError | ) | const |
To be called on CTransactions where IsNewQualifierAsset returns true.
Definition at line 1177 of file assets.cpp.
| bool CTransaction::VerifyNewRestrictedAsset | ( | std::string & | strError | ) | const |
To be called on CTransactions where IsNewRestrictedAsset returns true.
Definition at line 1266 of file assets.cpp.
| bool CTransaction::VerifyNewUniqueAsset | ( | std::string & | strError | ) | const |
Call this function after IsNewUniqueAsset.
Definition at line 913 of file assets.cpp.
| bool CTransaction::VerifyReissueAsset | ( | std::string & | strError | ) | const |
To be called on CTransactions where IsReissueAsset returns true.
Definition at line 1394 of file assets.cpp.
|
friend |
Definition at line 370 of file transaction.h.
|
friend |
Definition at line 365 of file transaction.h.
|
static |
Definition at line 274 of file transaction.h.
|
private |
Memory only.
Definition at line 294 of file transaction.h.
|
static |
Definition at line 280 of file transaction.h.
| const uint32_t CTransaction::nLockTime |
Definition at line 290 of file transaction.h.
| const int32_t CTransaction::nVersion |
Definition at line 289 of file transaction.h.
| const std::vector<CTxIn> CTransaction::vin |
Definition at line 287 of file transaction.h.
| const std::vector<CTxOut> CTransaction::vout |
Definition at line 288 of file transaction.h.
1.8.13