Move BIP70_MAX_PAYMENTREQUEST_SIZE to header

Github-Pull: #9785
Rebased-From: c801c82e25
This commit is contained in:
Pieter Wuille 2017-02-17 11:54:32 -08:00 committed by Wladimir J. van der Laan
parent f873564231
commit 973e345f7f
No known key found for this signature in database
GPG key ID: 74810B012346C9A6
2 changed files with 1 additions and 3 deletions

View file

@ -55,8 +55,6 @@ const char* BIP70_MESSAGE_PAYMENTREQUEST = "PaymentRequest";
const char* BIP71_MIMETYPE_PAYMENT = "application/bitcoin-payment";
const char* BIP71_MIMETYPE_PAYMENTACK = "application/bitcoin-paymentack";
const char* BIP71_MIMETYPE_PAYMENTREQUEST = "application/bitcoin-paymentrequest";
// BIP70 max payment request size in bytes (DoS protection)
const qint64 BIP70_MAX_PAYMENTREQUEST_SIZE = 50000;
struct X509StoreDeleter {
void operator()(X509_STORE* b) {

View file

@ -53,7 +53,7 @@ class QUrl;
QT_END_NAMESPACE
// BIP70 max payment request size in bytes (DoS protection)
extern const qint64 BIP70_MAX_PAYMENTREQUEST_SIZE;
static const qint64 BIP70_MAX_PAYMENTREQUEST_SIZE = 50000;
class PaymentServer : public QObject
{