Function save_to_db

Source
async fn save_to_db(
    blockchain: &mut Blockchain,
    wallet1: &mut Wallet,
    wallet2: &mut Wallet,
    blocks_collection: Collection<Document>,
    wallets_collection: Collection<Document>,
    blockchain_collection: Collection<Document>,
) -> Result<(), Box<dyn Error>>
Expand description

Save to mongoDB.