Small optimization for faster AddDerivationScheme

This commit is contained in:
nicolas.dorier
2020-04-05 18:34:46 +09:00
parent 5f838db281
commit a01b2e4a83
4 changed files with 11 additions and 4 deletions

View File

@@ -154,9 +154,8 @@ namespace BTCPayServer.Tests
GenerateWalletResponseV = await parent.ExplorerClient.GenerateWalletAsync(new GenerateWalletRequest()
{
ScriptPubKeyType = segwit ? ScriptPubKeyType.Segwit : ScriptPubKeyType.Legacy,
SavePrivateKeys = importKeysToNBX
SavePrivateKeys = importKeysToNBX,
});
await store.AddDerivationScheme(StoreId,
new DerivationSchemeViewModel()
{

View File

@@ -2431,7 +2431,6 @@ noninventoryitem:
ItemDesc = "Some \", description",
FullNotifications = true
}, Facade.Merchant);
var networkFee = Money.Satoshis(10000).ToDecimal(MoneyUnit.BTC);
var missingMoney = Money.Satoshis(5000).ToDecimal(MoneyUnit.BTC);
var cashCow = tester.ExplorerNode;

View File

@@ -1,7 +1,13 @@
using System;
namespace BTCPayServer.Events
{
public class WalletChangedEvent
{
public WalletId WalletId { get; set; }
public override string ToString()
{
return String.Empty;
}
}
}

View File

@@ -93,7 +93,10 @@ namespace BTCPayServer.Services.Wallets
public async Task TrackAsync(DerivationStrategyBase derivationStrategy)
{
await _Client.TrackAsync(derivationStrategy);
await _Client.TrackAsync(derivationStrategy, new TrackWalletRequest()
{
Wait = false
});
}
public async Task<TransactionResult> GetTransactionAsync(uint256 txId, bool includeOffchain = false, CancellationToken cancellation = default(CancellationToken))