mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
Partially revert 4023
Fixes wallet backwards compatibility
This commit is contained in:
parent
ba4a7b1d07
commit
059d8e671f
@ -61,6 +61,12 @@ public:
|
|||||||
CAmount amount;
|
CAmount amount;
|
||||||
// If from a payment request, this is used for storing the memo
|
// If from a payment request, this is used for storing the memo
|
||||||
QString message;
|
QString message;
|
||||||
|
// If building with BIP70 is disabled, keep the payment request around as
|
||||||
|
// serialized string to ensure load/store is lossless
|
||||||
|
std::string sPaymentRequest;
|
||||||
|
// Empty if no authentication or invalid signature/cert/etc.
|
||||||
|
QString authenticatedMerchant;
|
||||||
|
|
||||||
bool fSubtractFeeFromAmount; // memory only
|
bool fSubtractFeeFromAmount; // memory only
|
||||||
|
|
||||||
static const int CURRENT_VERSION = 1;
|
static const int CURRENT_VERSION = 1;
|
||||||
@ -68,16 +74,18 @@ public:
|
|||||||
|
|
||||||
SERIALIZE_METHODS(SendCoinsRecipient, obj)
|
SERIALIZE_METHODS(SendCoinsRecipient, obj)
|
||||||
{
|
{
|
||||||
std::string address_str, label_str, message_str;
|
std::string address_str, label_str, message_str, auth_merchant_str;
|
||||||
SER_WRITE(obj, address_str = obj.address.toStdString());
|
SER_WRITE(obj, address_str = obj.address.toStdString());
|
||||||
SER_WRITE(obj, label_str = obj.label.toStdString());
|
SER_WRITE(obj, label_str = obj.label.toStdString());
|
||||||
SER_WRITE(obj, message_str = obj.message.toStdString());
|
SER_WRITE(obj, message_str = obj.message.toStdString());
|
||||||
|
SER_WRITE(obj, auth_merchant_str = obj.authenticatedMerchant.toStdString());
|
||||||
|
|
||||||
READWRITE(obj.nVersion, address_str, label_str, obj.amount, message_str);
|
READWRITE(obj.nVersion, address_str, label_str, obj.amount, message_str, obj.sPaymentRequest, auth_merchant_str);
|
||||||
|
|
||||||
SER_READ(obj, obj.address = QString::fromStdString(address_str));
|
SER_READ(obj, obj.address = QString::fromStdString(address_str));
|
||||||
SER_READ(obj, obj.label = QString::fromStdString(label_str));
|
SER_READ(obj, obj.label = QString::fromStdString(label_str));
|
||||||
SER_READ(obj, obj.message = QString::fromStdString(message_str));
|
SER_READ(obj, obj.message = QString::fromStdString(message_str));
|
||||||
|
SER_READ(obj, obj.authenticatedMerchant = QString::fromStdString(auth_merchant_str));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user