mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-11-30 20:23:58 +01:00
MoneroCheck fields are optional;
make error messages consistent with rpc
This commit is contained in:
@@ -279,9 +279,9 @@ namespace monero {
|
||||
* Results from checking a transaction key.
|
||||
*/
|
||||
struct MoneroCheckTx : public MoneroCheck {
|
||||
bool inTxPool;
|
||||
uint64_t numConfirmations;
|
||||
uint64_t receivedAmount;
|
||||
boost::optional<bool> inTxPool;
|
||||
boost::optional<uint64_t> numConfirmations;
|
||||
boost::optional<uint64_t> receivedAmount;
|
||||
|
||||
boost::property_tree::ptree toPropertyTree() const;
|
||||
};
|
||||
@@ -290,8 +290,8 @@ namespace monero {
|
||||
* Results from checking a reserve proof.
|
||||
*/
|
||||
struct MoneroCheckReserve : public MoneroCheck {
|
||||
uint64_t totalAmount;
|
||||
uint64_t unconfirmedSpentAmount;
|
||||
boost::optional<uint64_t> totalAmount;
|
||||
boost::optional<uint64_t> unconfirmedSpentAmount;
|
||||
|
||||
boost::property_tree::ptree toPropertyTree() const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user