mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-11-29 02:14:16 +01:00
Always store and update kernel excess (#231)
* always store and update kernel excess * fix to parent key id on update as caught by testing * save kernel excess for transaction recipients and coinbase outputs * rustfmt * logic cleanup, cargo.lock * update to use node beta.3 release * fix to doctests * check result of calc offset before using * rustfmt
This commit is contained in:
@@ -569,6 +569,9 @@ where
|
||||
if tx.confirmed {
|
||||
continue;
|
||||
}
|
||||
if tx.amount_debited != 0 && tx.amount_credited != 0 {
|
||||
continue;
|
||||
}
|
||||
if let Some(e) = tx.kernel_excess {
|
||||
let res = w
|
||||
.w2n_client()
|
||||
@@ -585,6 +588,8 @@ where
|
||||
batch.save_tx_log_entry(tx.clone(), &parent_key_id)?;
|
||||
batch.commit()?;
|
||||
}
|
||||
} else {
|
||||
warn!("Attempted to update via kernel excess for transaction {:?}, but kernel excess was not stored", tx.tx_slate_id);
|
||||
}
|
||||
}
|
||||
Ok(true)
|
||||
|
||||
Reference in New Issue
Block a user