Skip to content

Commit c801c82

Browse files
committed
Move BIP70_MAX_PAYMENTREQUEST_SIZE to header
1 parent 914fad1 commit c801c82

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/qt/paymentserver.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ const char* BIP70_MESSAGE_PAYMENTREQUEST = "PaymentRequest";
5555
const char* BIP71_MIMETYPE_PAYMENT = "application/bitcoin-payment";
5656
const char* BIP71_MIMETYPE_PAYMENTACK = "application/bitcoin-paymentack";
5757
const char* BIP71_MIMETYPE_PAYMENTREQUEST = "application/bitcoin-paymentrequest";
58-
// BIP70 max payment request size in bytes (DoS protection)
59-
const qint64 BIP70_MAX_PAYMENTREQUEST_SIZE = 50000;
6058

6159
struct X509StoreDeleter {
6260
void operator()(X509_STORE* b) {

src/qt/paymentserver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class QUrl;
5353
QT_END_NAMESPACE
5454

5555
// BIP70 max payment request size in bytes (DoS protection)
56-
extern const qint64 BIP70_MAX_PAYMENTREQUEST_SIZE;
56+
static const qint64 BIP70_MAX_PAYMENTREQUEST_SIZE = 50000;
5757

5858
class PaymentServer : public QObject
5959
{

0 commit comments

Comments
 (0)