Skip to main content

Crate fedimint_walletv2_server

Crate fedimint_walletv2_server 

Source

Re-exportsΒ§

pub use fedimint_walletv2_common as common;

ModulesΒ§

db
metrics πŸ”’

StructsΒ§

FederationTx
SpentTxOut
Wallet
WalletInit

ConstantsΒ§

BLOCK_COUNT_VOTE_DELAY
How many blocks a peer’s block count vote trails its bitcoin backend: the finality delay, plus one block of slack. Processing a new consensus block count waits for the local backend to report the consensus count plus the finality delay, and without the slack that is exactly the block the voter saw, so a backend a little behind, or a backend status that is stale (it is polled once a minute), stalled item processing on every new block.
CONFIRMATION_FINALITY_DELAY
Number of confirmations required for a transaction to be considered as final by the federation. The block that mines the transaction does not count towards the number of confirmations.
MAX_BLOCK_COUNT_INCREMENT πŸ”’
Maximum number of blocks the consensus block count can advance in a single consensus item to limit the work done in one process_consensus_item step.
MIN_FEERATE_VOTE_SATS_PER_KVB πŸ”’
Minimum fee rate vote of 1 sat/vB to ensure we never propose a fee rate below what Bitcoin Core will relay.
TEST_MAX_BLOCK_COUNT_INCREMENT πŸ”’
Devimint tests can mine many regtest blocks at once, so use a larger cap in test environments to avoid waiting on several consensus sessions.

FunctionsΒ§

calculate_pegin_metrics πŸ”’
calculate_pegout_metrics πŸ”’
pending_txs_unordered πŸ”’