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:
Yeastplume
2019-10-03 15:15:25 +01:00
committed by GitHub
parent f021e15eb6
commit 2186900faa
11 changed files with 124 additions and 88 deletions
+5
View File
@@ -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)