wallet sends only relevant fields for /check endpoint

This commit is contained in:
callebtc
2022-10-14 00:30:24 +02:00
parent 5022d4e47f
commit d2363f8f2a
3 changed files with 10 additions and 7 deletions

View File

@@ -24,9 +24,9 @@ class P2SHScript(BaseModel):
class Proof(BaseModel):
id: str = ""
amount: int
amount: int = 0
secret: str = ""
C: str
C: str = ""
script: Union[P2SHScript, None] = None
reserved: bool = False # whether this proof is reserved for sending
send_id: str = "" # unique ID of send attempt