Skip to content

Commit

Permalink
Move BIP70_MAX_PAYMENTREQUEST_SIZE to header
Browse files Browse the repository at this point in the history
Github-Pull: #9785
Rebased-From: c801c82
  • Loading branch information
sipa authored and laanwj committed Feb 17, 2017
1 parent f873564 commit 973e345
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/qt/paymentserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/qt/paymentserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 973e345

Please sign in to comment.