[testnet2] Store output sum (#1043)

* block sums and reworked block validation
read and write block_sums
refactor validate on both block and txhashset
write block_sum on fast sync
we store the kernel_sum (need to account for the offset)

* block_sums

* rustfmt

* cleanup
This commit is contained in:
Antioch Peverell
2018-05-07 09:21:41 -04:00
committed by GitHub
parent b42b2a4f77
commit 4dd94ff39e
13 changed files with 426 additions and 141 deletions
+8
View File
@@ -88,6 +88,14 @@ pub fn issue_send_tx(
.aggsig_create_context(&tx_id, skey)
.context(ErrorKind::Keychain)?;
// let kernel_key = kernel_blind
// .secret_key(keychain.secp())
// .context(ErrorKind::Keychain)?;
// let kernel_offset = keychain
// .secp()
// .commit(0, kernel_key)
// .context(ErrorKind::Keychain)?;
let partial_tx = build_partial_tx(&tx_id, keychain, amount_with_fee, kernel_offset, None, tx);
// Closure to acquire wallet lock and lock the coins being spent