|
@@ -37,7 +37,7 @@ impl DbSignatory {
|
|
pub async fn new(
|
|
pub async fn new(
|
|
localstore: Arc<dyn database::MintKeysDatabase<Err = database::Error> + Send + Sync>,
|
|
localstore: Arc<dyn database::MintKeysDatabase<Err = database::Error> + Send + Sync>,
|
|
seed: &[u8],
|
|
seed: &[u8],
|
|
- mut supported_units: HashMap<CurrencyUnit, (u64, u8)>,
|
|
|
|
|
|
+ supported_units: HashMap<CurrencyUnit, (u64, u8)>,
|
|
custom_paths: HashMap<CurrencyUnit, DerivationPath>,
|
|
custom_paths: HashMap<CurrencyUnit, DerivationPath>,
|
|
) -> Result<Self, Error> {
|
|
) -> Result<Self, Error> {
|
|
let secp_ctx = Secp256k1::new();
|
|
let secp_ctx = Secp256k1::new();
|
|
@@ -52,8 +52,6 @@ impl DbSignatory {
|
|
)
|
|
)
|
|
.await?;
|
|
.await?;
|
|
|
|
|
|
- supported_units.entry(CurrencyUnit::Auth).or_insert((0, 1));
|
|
|
|
-
|
|
|
|
// Create new keysets for supported units that aren't covered by the current keysets
|
|
// Create new keysets for supported units that aren't covered by the current keysets
|
|
for (unit, (fee, max_order)) in supported_units {
|
|
for (unit, (fee, max_order)) in supported_units {
|
|
if !active_keyset_units.contains(&unit) {
|
|
if !active_keyset_units.contains(&unit) {
|