Skip to content

Commit e40b57d

Browse files
authored
Merge pull request #1355 from delta1/pegin-estimate
fix: size estimation for pegin transactions
2 parents e1d6b66 + c1bc7ca commit e40b57d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/rpc/elements.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ static UniValue createrawpegin(const JSONRPCRequest& request, T_tx_ref& txBTCRef
850850

851851
// Estimate fee for transaction, decrement fee output(including witness data)
852852
unsigned int nBytes = GetVirtualTransactionSize(CTransaction(mtx)) +
853-
(1+1+72+1+33/WITNESS_SCALE_FACTOR);
853+
(1+1+72+1+33)/WITNESS_SCALE_FACTOR;
854854
CCoinControl coin_control;
855855
FeeCalculation feeCalc;
856856
CAmount nFeeNeeded = GetMinimumFee(*pwallet, nBytes, coin_control, &feeCalc);

0 commit comments

Comments
 (0)