File tree Expand file tree Collapse file tree
lib/wallets/wallet/wallet_mixin_interfaces Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1741,8 +1741,12 @@ mixin SparkInterface<T extends ElectrumXCurrencyInterface>
17411741 throw Exception ("Transaction too large" );
17421742 }
17431743
1744+ const nBytesBuffer = 10 ;
17441745 final nFeeNeeded = BigInt .from (
1745- estimateTxFee (vSize: nBytes, feeRatePerKB: feesObject.medium),
1746+ estimateTxFee (
1747+ vSize: nBytes + nBytesBuffer,
1748+ feeRatePerKB: feesObject.medium,
1749+ ),
17461750 ); // One day we'll do this properly
17471751
17481752 if (nFeeRet >= nFeeNeeded) {
@@ -1993,6 +1997,7 @@ mixin SparkInterface<T extends ElectrumXCurrencyInterface>
19931997 ),
19941998 );
19951999
2000+ Logging .instance.i ("nFeeRet=$nFeeRet , vSize=${data .vSize }" );
19962001 if (nFeeRet.toInt () < data.vSize! ) {
19972002 Logging .instance.w (
19982003 "Spark mint transaction failed: $nFeeRet is less than ${data .vSize }" ,
You can’t perform that action at this time.
0 commit comments