sync upstream Grim: bump node + wallet, adapt tx_log_iter

Upstream Grim advanced past the fork base with a node + wallet version update
(b51a46b → its "node + wallet: update to latest versions"). Bumped both
submodules (node → bce5a71, wallet → c2db754) and applied the one source
adaptation that update requires: `tx_log_iter()` now yields Result items, so the
three call sites filter Ok + unwrap before use. The upstream Tor/arti-0.43 commit
is skipped — Goblin removed Tor entirely.
This commit is contained in:
2ro
2026-06-17 22:10:25 -04:00
parent f0b5410c13
commit 36e63d4751
4 changed files with 18 additions and 12 deletions
+6
View File
@@ -915,6 +915,8 @@ impl Wallet {
// Retrieve txs from database.
let mut txs: Vec<TxLogEntry> = w
.tx_log_iter()?
.filter(|tx| tx.is_ok())
.map(|tx| tx.unwrap())
.filter(|tx_entry| tx_entry.parent_key_id == parent_key_id)
// Filter transactions to not show txs without slate (usually unspent outputs).
.filter(|tx| {
@@ -958,6 +960,8 @@ impl Wallet {
let parent_key_id = w.parent_key_id();
// Retrieve txs from database.
w.tx_log_iter()?
.filter(|tx| tx.is_ok())
.map(|tx| tx.unwrap())
.filter(|tx_entry| tx_entry.parent_key_id == parent_key_id)
.filter(|tx_entry| {
if tx_entry.tx_type == TxLogEntryType::TxSent
@@ -1843,6 +1847,8 @@ impl Wallet {
// Find wallet transaction to update or create.
let txs = w
.tx_log_iter()?
.filter(|tx| tx.is_ok())
.map(|tx| tx.unwrap())
.filter(|entry| {
if let Some(excess) = entry.kernel_excess {
return excess == proof.excess;