This commit is contained in:
callebtc
2022-10-09 17:51:37 +02:00
parent b7361145e0
commit e4747910c9
5 changed files with 28 additions and 24 deletions

View File

@@ -1,9 +1,15 @@
import asyncio
from functools import partial, wraps
from typing import List
from cashu.core.base import Proof
from cashu.core.settings import LIGHTNING_FEE_PERCENT, LIGHTNING_RESERVE_FEE_MIN
def sum_proofs(proofs: List[Proof]):
return sum([p.amount for p in proofs])
def async_wrap(func):
@wraps(func)
async def run(*args, loop=None, executor=None, **kwargs):