mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-26 02:18:33 +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:
@@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user