Skip to content

Commit c41fda5

Browse files
committed
Fix transaction size calculation for legacy txes
1 parent b96583b commit c41fda5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,7 @@ int64_t CalculateMaximumSignedTxSize(const CTransaction &tx,
17581758
int64_t bls_size = 91 * tx.vin.size() + 83 * tx.vout.size() + 110;
17591759
// This is formula for EC Txes
17601760
// will overestimate size for BLS Tx when more inputs
1761-
int64_t ec_size = 146 * tx.vin.size() + 33 * tx.vout.size() + 10;
1761+
int64_t ec_size = 148 * tx.vin.size() + 34 * tx.vout.size() + 10;
17621762
// For now return the larger of the two, this will mean potentially
17631763
// more fees than needed but sizes should be comparable and this
17641764
// will prevent issues with fees being too low

0 commit comments

Comments
 (0)