mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-22 15:14:51 +01:00
Merge pull request #603 from ok300/ok300-fix-mint-startup-clean-db-no-rpc
Fix minting and melting error on fresh `mintd` with RPC disabled
This commit is contained in:
@@ -22,7 +22,7 @@ use cdk::mint::{MintBuilder, MintMeltLimits};
|
|||||||
use cdk::nuts::nut17::SupportedMethods;
|
use cdk::nuts::nut17::SupportedMethods;
|
||||||
use cdk::nuts::nut19::{CachedEndpoint, Method as NUT19Method, Path as NUT19Path};
|
use cdk::nuts::nut19::{CachedEndpoint, Method as NUT19Method, Path as NUT19Path};
|
||||||
use cdk::nuts::{ContactInfo, CurrencyUnit, MintVersion, PaymentMethod};
|
use cdk::nuts::{ContactInfo, CurrencyUnit, MintVersion, PaymentMethod};
|
||||||
use cdk::types::LnKey;
|
use cdk::types::{LnKey, QuoteTTL};
|
||||||
use cdk_axum::cache::HttpCache;
|
use cdk_axum::cache::HttpCache;
|
||||||
#[cfg(feature = "management-rpc")]
|
#[cfg(feature = "management-rpc")]
|
||||||
use cdk_mint_rpc::MintRPCServer;
|
use cdk_mint_rpc::MintRPCServer;
|
||||||
@@ -403,6 +403,7 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
} else {
|
} else {
|
||||||
tracing::warn!("RPC not enabled, using mint info from config.");
|
tracing::warn!("RPC not enabled, using mint info from config.");
|
||||||
mint.set_mint_info(mint_builder.mint_info).await?;
|
mint.set_mint_info(mint_builder.mint_info).await?;
|
||||||
|
mint.set_quote_ttl(QuoteTTL::new(10_000, 10_000)).await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let axum_result = axum::Server::bind(
|
let axum_result = axum::Server::bind(
|
||||||
|
|||||||
Reference in New Issue
Block a user