mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-18 15:51:34 +02:00
model structs compiling using pointers and forward declarations
This commit is contained in:
@@ -30,7 +30,6 @@ namespace monero {
|
||||
|
||||
// forward declarations
|
||||
struct MoneroTx;
|
||||
struct MoneroBlock;
|
||||
|
||||
/**
|
||||
* Models a Monero block header which contains information about the block.
|
||||
@@ -60,7 +59,7 @@ namespace monero {
|
||||
*/
|
||||
struct MoneroBlock : public MoneroBlockHeader {
|
||||
string hex;
|
||||
MoneroTx coinbaseTx;
|
||||
MoneroTx* coinbaseTx;
|
||||
vector<MoneroTx> txs;
|
||||
vector<string> txIds;
|
||||
};
|
||||
@@ -78,7 +77,7 @@ namespace monero {
|
||||
*/
|
||||
struct MoneroOutput {
|
||||
MoneroTx* tx;
|
||||
MoneroKeyImage keyImage;
|
||||
MoneroKeyImage* keyImage;
|
||||
uint64_t amount;
|
||||
uint32_t index;
|
||||
vector<uint32_t> ringOutputIndices;
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace monero {
|
||||
* Models a base transfer of funds to or from the wallet.
|
||||
*/
|
||||
struct MoneroTransfer {
|
||||
MoneroTxWallet tx;
|
||||
MoneroTxWallet* tx;
|
||||
uint64_t amount;
|
||||
uint32_t accountIndex;
|
||||
bool isIncoming;
|
||||
@@ -119,7 +119,7 @@ namespace monero {
|
||||
*/
|
||||
struct MoneroTxWallet : public MoneroTx {
|
||||
vector<MoneroIncomingTransfer> incomingTransfers;
|
||||
MoneroOutgoingTransfer outgoingTransfer;
|
||||
MoneroOutgoingTransfer* outgoingTransfer;
|
||||
uint32_t numSuggestedConfirmations;
|
||||
string note;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user