Make RegTest work with the backend (Core >0.16 needed)
MODIFY
MagicalCryptoWallet.Backend/Controllers/BlockchainController.cs
MagicalCryptoWallet.Backend/Controllers/BlockchainController.cs
@@ -58,6 +58,8 @@ namespace MagicalCryptoWallet.Backend.Controllers
var feeEstimations = new SortedDictionary<int, FeeEstimationPair>();
foreach (int target in confirmationTargetsInts)
+ {
+ if (Network != Network.RegTest)
{
// ToDo: This is the most naive way to implement this.
// 1. Use the sanity check that under 5 satoshi per bytes should not be displayed.
@@ -74,6 +76,11 @@ namespace MagicalCryptoWallet.Backend.Controllers
feeEstimations.Add(target, new FeeEstimationPair() { Conservative = conservativeFee, Economical = economicalFee });
}
+ else // RegTest cannot estimate fees, so fill up with dummy data
+ {
+ feeEstimations.Add(target, new FeeEstimationPair() { Conservative = 6 + target, Economical = 5 + target });
+ }
+ }
return Ok(feeEstimations);
}

Make RegTest work with the backend (Core >0.16 needed)