mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +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()
|
GenerateWalletResponseV = await parent.ExplorerClient.GenerateWalletAsync(new GenerateWalletRequest()
|
||||||
{
|
{
|
||||||
ScriptPubKeyType = segwit ? ScriptPubKeyType.Segwit : ScriptPubKeyType.Legacy,
|
ScriptPubKeyType = segwit ? ScriptPubKeyType.Segwit : ScriptPubKeyType.Legacy,
|
||||||
SavePrivateKeys = importKeysToNBX
|
SavePrivateKeys = importKeysToNBX,
|
||||||
});
|
});
|
||||||
|
|
||||||
await store.AddDerivationScheme(StoreId,
|
await store.AddDerivationScheme(StoreId,
|
||||||
new DerivationSchemeViewModel()
|
new DerivationSchemeViewModel()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2431,7 +2431,6 @@ noninventoryitem:
|
|||||||
ItemDesc = "Some \", description",
|
ItemDesc = "Some \", description",
|
||||||
FullNotifications = true
|
FullNotifications = true
|
||||||
}, Facade.Merchant);
|
}, Facade.Merchant);
|
||||||
|
|
||||||
var networkFee = Money.Satoshis(10000).ToDecimal(MoneyUnit.BTC);
|
var networkFee = Money.Satoshis(10000).ToDecimal(MoneyUnit.BTC);
|
||||||
var missingMoney = Money.Satoshis(5000).ToDecimal(MoneyUnit.BTC);
|
var missingMoney = Money.Satoshis(5000).ToDecimal(MoneyUnit.BTC);
|
||||||
var cashCow = tester.ExplorerNode;
|
var cashCow = tester.ExplorerNode;
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
|
||||||
namespace BTCPayServer.Events
|
namespace BTCPayServer.Events
|
||||||
{
|
{
|
||||||
public class WalletChangedEvent
|
public class WalletChangedEvent
|
||||||
{
|
{
|
||||||
public WalletId WalletId { get; set; }
|
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)
|
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))
|
public async Task<TransactionResult> GetTransactionAsync(uint256 txId, bool includeOffchain = false, CancellationToken cancellation = default(CancellationToken))
|
||||||
|
|||||||
Reference in New Issue
Block a user