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
+8
View File
@@ -160,6 +160,7 @@ pub fn txs(
bMG->"Amount \nDebited",
bMG->"Fee",
bMG->"Net \nDifference",
bMG->"Kernel",
bMG->"Tx \nData",
]);
@@ -196,6 +197,10 @@ pub fn txs(
Some(_) => "Yes".to_owned(),
None => "None".to_owned(),
};
let kernel_excess = match t.kernel_excess {
Some(e) => util::to_hex(e.0.to_vec()),
None => "None".to_owned(),
};
if dark_background_color_scheme {
table.add_row(row![
bFC->id,
@@ -210,6 +215,7 @@ pub fn txs(
bFR->amount_debited_str,
bFR->fee,
bFY->net_diff,
bFB->kernel_excess,
bFb->tx_data,
]);
} else {
@@ -227,6 +233,7 @@ pub fn txs(
bFD->amount_debited_str,
bFD->fee,
bFG->net_diff,
bFB->kernel_excess,
bFB->tx_data,
]);
} else {
@@ -243,6 +250,7 @@ pub fn txs(
bFD->amount_debited_str,
bFD->fee,
bFG->net_diff,
bFB->kernel_excess,
bFB->tx_data,
]);
}