Skip to content

Commit 74c4b9d

Browse files
random-zebrafurszy
authored andcommitted
[BUG][GUI] Refine bytes/fee/"after fee" calculation in coin-control
1 parent a5d236a commit 74c4b9d

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/qt/coincontroldialog.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,9 +550,6 @@ TotalAmounts CoinControlDialog::getTotals() const
550550
t.nBytes += (GetCompactSize(nShieldIns) + GetCompactSize(nShieldOuts));
551551
}
552552

553-
// !TODO: ExtraPayload size for special txes. For now 1 byte for nullopt.
554-
t.nBytes += 1;
555-
556553
// nVersion, nType, nLockTime
557554
t.nBytes += 8;
558555

src/sapling/sapling_operation.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
#include "primitives/transaction.h"
1212
#include "wallet/wallet.h"
1313

14-
// transaction.h comment: spending taddr output requires CTxIn >= 148 bytes and typical taddr txout is 34 bytes
15-
#define CTXIN_SPEND_DUST_SIZE 148
16-
#define CTXOUT_REGULAR_SIZE 34
17-
1814
class CCoinControl;
1915
struct TxValues;
2016

src/sapling/sapling_transaction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <boost/variant.hpp>
1818

1919
// transaction.h comment: spending taddr output requires CTxIn >= 148 bytes and typical taddr txout is 34 bytes
20-
#define CTXIN_SPEND_DUST_SIZE 148
20+
#define CTXIN_SPEND_DUST_SIZE 149
2121
#define CTXOUT_REGULAR_SIZE 34
2222

2323
// These constants are defined in the protocol § 7.1:

0 commit comments

Comments
 (0)