fix early payment proof versioning and validation

This commit is contained in:
wiesche
2026-09-01 19:19:06 +02:00
parent 88af108b88
commit 1d342e59de
19 changed files with 510 additions and 246 deletions
+4 -2
View File
@@ -236,7 +236,8 @@ where
sender_id: m.dest,
dest: m.sender_id,
method: m.method,
body: serde_json::to_string(&SlateV4::from(slate)).unwrap(),
body: serde_json::to_string(&SlateV4::try_from(slate)?)
.map_err(|e| libwallet::Error::ClientCallback(e.to_string()))?,
})
}
@@ -397,7 +398,8 @@ impl LocalWalletClient {
sender_id: self.id.clone(),
dest: dest.to_owned(),
method: "send_tx_slate".to_owned(),
body: serde_json::to_string(&SlateV4::from(slate)).unwrap(),
body: serde_json::to_string(&SlateV4::try_from(slate)?)
.map_err(|e| libwallet::Error::ClientCallback(e.to_string()))?,
};
{
let p = self.proxy_tx.lock();