mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Small optimization for faster AddDerivationScheme
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace BTCPayServer.Events
|
||||
{
|
||||
public class WalletChangedEvent
|
||||
{
|
||||
public WalletId WalletId { get; set; }
|
||||
public override string ToString()
|
||||
{
|
||||
return String.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user